summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-29 01:20:20 +0100
committerwithmorten <morten.with@gmail.com>2021-01-29 01:20:20 +0100
commit8482180706815434e6a56267edfedbf2bbc05851 (patch)
treef29468c1dc05b6ee2a886c25f955c29df3c4999d /src/render/WaterLevel.cpp
parentwaterlevel fix (diff)
downloadre3-8482180706815434e6a56267edfedbf2bbc05851.tar
re3-8482180706815434e6a56267edfedbf2bbc05851.tar.gz
re3-8482180706815434e6a56267edfedbf2bbc05851.tar.bz2
re3-8482180706815434e6a56267edfedbf2bbc05851.tar.lz
re3-8482180706815434e6a56267edfedbf2bbc05851.tar.xz
re3-8482180706815434e6a56267edfedbf2bbc05851.tar.zst
re3-8482180706815434e6a56267edfedbf2bbc05851.zip
Diffstat (limited to 'src/render/WaterLevel.cpp')
-rw-r--r--src/render/WaterLevel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp
index dc589970..9b2dd816 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -714,7 +714,7 @@ CWaterLevel::GetWaterLevel(float fX, float fY, float fZ, float *pfOutLevel, bool
if ( y < 0 || y >= MAX_SMALL_SECTORS ) return false;
#endif
- uint8 nBlock = aWaterFineBlockList[x][y];
+ int8 nBlock = aWaterFineBlockList[x][y];
if ( nBlock == NO_WATER )
return false;
@@ -756,7 +756,7 @@ CWaterLevel::GetWaterLevelNoWaves(float fX, float fY, float fZ, float *pfOutLeve
if ( y < 0 || y >= MAX_SMALL_SECTORS ) return false;
#endif
- uint8 nBlock = aWaterFineBlockList[x][y];
+ int8 nBlock = aWaterFineBlockList[x][y];
if ( nBlock == NO_WATER )
return false;