summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-01 10:44:45 +0200
committerGitHub <noreply@github.com>2020-06-01 10:44:45 +0200
commitf69313237e1b986c4468cad46bbaf8636bc7c4ac (patch)
tree50a0c86b32d12d1078fe63e532a74a3ba6b22622 /src/render
parentfixed bumper colmodel (diff)
parentAdd files via upload (diff)
downloadre3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.tar
re3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.tar.gz
re3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.tar.bz2
re3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.tar.lz
re3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.tar.xz
re3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.tar.zst
re3-f69313237e1b986c4468cad46bbaf8636bc7c4ac.zip
Diffstat (limited to '')
-rw-r--r--src/render/WaterLevel.cpp7
-rw-r--r--src/render/WaterLevel.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index 1a28ce83..6133b1d7 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -35,6 +35,8 @@ bool CWaterLevel::WavesCalculatedThisFrame;
RpAtomic *CWaterLevel::ms_pWavyAtomic;
RpGeometry *CWaterLevel::apGeomArray[8];
int16 CWaterLevel::nGeomUsed;
+//"Custom" Donīt Render Water Toggle
+bool gbDontRenderWater;
//RwTexture *gpWaterTex;
//RwRaster *gpWaterRaster;
@@ -332,6 +334,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 985c9744..325be0a5 100644
--- a/src/render/WaterLevel.h
+++ b/src/render/WaterLevel.h
@@ -65,6 +65,8 @@
#define MAX_BOAT_WAKES 8
extern RwRaster* gpWaterRaster;
+//"Custom" Donīt Render Water Toggle
+extern bool gbDontRenderWater;
class CWaterLevel
{