summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-23 22:55:23 +0200
committeraap <aap@papnet.eu>2019-07-23 22:55:23 +0200
commitae69aaf5ce8eca137bd5da85e26c63a5027e049d (patch)
tree905ce82e7b5e0817856370a702a8540ac46400e6 /src/render
parentbit more CAutomobile (diff)
downloadre3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.tar
re3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.tar.gz
re3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.tar.bz2
re3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.tar.lz
re3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.tar.xz
re3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.tar.zst
re3-ae69aaf5ce8eca137bd5da85e26c63a5027e049d.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/WaterLevel.cpp2
-rw-r--r--src/render/WaterLevel.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index 30be88e1..4f315cd0 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -1240,7 +1240,7 @@ STARTPATCHES
InjectHook(0x554FE0, &CWaterLevel::Shutdown, PATCH_JUMP);
InjectHook(0x555010, &CWaterLevel::CreateWavyAtomic, PATCH_JUMP);
InjectHook(0x5552A0, &CWaterLevel::DestroyWavyAtomic, PATCH_JUMP);
- InjectHook(0x5552C0, &CWaterLevel::GetWaterLevel, PATCH_JUMP);
+ InjectHook(0x5552C0, (bool (*)(float,float,float,float*,bool))&CWaterLevel::GetWaterLevel, PATCH_JUMP);
InjectHook(0x555440, &CWaterLevel::GetWaterLevelNoWaves, PATCH_JUMP);
InjectHook(0x5554E0, &CWaterLevel::RenderWater, PATCH_JUMP);
InjectHook(0x556C30, &CWaterLevel::RenderOneFlatSmallWaterPoly, PATCH_JUMP);
diff --git a/src/render/WaterLevel.h b/src/render/WaterLevel.h
index b8ec7a4d..afc6eac3 100644
--- a/src/render/WaterLevel.h
+++ b/src/render/WaterLevel.h
@@ -82,6 +82,7 @@ public:
static void CreateWavyAtomic();
static void DestroyWavyAtomic();
static bool GetWaterLevel(float fX, float fY, float fZ, float *pfOutLevel, bool bDontCheckZ);
+ static bool GetWaterLevel(CVector coors, float *pfOutLevel, bool bDontCheckZ) { return GetWaterLevel(coors.x, coors.y, coors.z, pfOutLevel, bDontCheckZ); }
static bool GetWaterLevelNoWaves(float fX, float fY, float fZ, float *pfOutLevel);
static void RenderWater();
static void RenderOneFlatSmallWaterPoly (float fX, float fY, float fZ, RwRGBA const &color);