diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-03 00:24:08 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-03 00:24:08 +0200 |
commit | 509ca11d76373671281f17c7f828a0187ed7b9e4 (patch) | |
tree | c3d072fd7933274fbfc9f85f6be4a09613b2e7be /src/render | |
parent | some CBike code; vehicle cleanup (diff) | |
parent | some vehicle cleanup (diff) | |
download | re3-509ca11d76373671281f17c7f828a0187ed7b9e4.tar re3-509ca11d76373671281f17c7f828a0187ed7b9e4.tar.gz re3-509ca11d76373671281f17c7f828a0187ed7b9e4.tar.bz2 re3-509ca11d76373671281f17c7f828a0187ed7b9e4.tar.lz re3-509ca11d76373671281f17c7f828a0187ed7b9e4.tar.xz re3-509ca11d76373671281f17c7f828a0187ed7b9e4.tar.zst re3-509ca11d76373671281f17c7f828a0187ed7b9e4.zip |
Diffstat (limited to 'src/render')
-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; |