diff options
Diffstat (limited to '')
-rw-r--r-- | src/render/WaterLevel.cpp | 7 | ||||
-rw-r--r-- | src/render/WaterLevel.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index e6dbb9c4..0fd1e076 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -55,6 +55,8 @@ int32 CWaterLevel::m_nRenderWaterLayers; RpAtomic *CWaterLevel::ms_pWavyAtomic; RpAtomic *CWaterLevel::ms_pMaskAtomic; +//"Custom" Donīt Render Water Toggle +bool gbDontRenderWater; RwTexture *gpWaterTex; @@ -591,6 +593,11 @@ SectorRadius(float fSize) void CWaterLevel::RenderWater() { +//"Custom" Donīt Render Water Toggle +#ifndef MASTER + if (gbDontRenderWater) + return; +#endif bool bUseCamEndX = false; bool bUseCamStartY = false; diff --git a/src/render/WaterLevel.h b/src/render/WaterLevel.h index 69f90745..5b02d54f 100644 --- a/src/render/WaterLevel.h +++ b/src/render/WaterLevel.h @@ -88,6 +88,7 @@ enum eBeachToy }; extern RwRaster* gpWaterRaster; +extern bool gbDontRenderWater; class CEntity; |