summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-29 01:18:32 +0100
committerwithmorten <morten.with@gmail.com>2021-01-29 01:18:32 +0100
commit2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830 (patch)
treee758bdcf95b8f626b7b8c00944075ae02ead5d72 /src/render
parent810bad9fd8cf344f7d73b82f042910a4c443b0f7 (diff)
waterlevel fix
Diffstat (limited to 'src/render')
-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 08fd5e6e..dc589970 100644
--- a/src/render/WaterLevel.cpp
+++ b/src/render/WaterLevel.cpp
@@ -716,7 +716,7 @@ CWaterLevel::GetWaterLevel(float fX, float fY, float fZ, float *pfOutLevel, bool
uint8 nBlock = aWaterFineBlockList[x][y];
- if ( nBlock == 0x80 )
+ if ( nBlock == NO_WATER )
return false;
ASSERT( pfOutLevel != nil );
@@ -758,7 +758,7 @@ CWaterLevel::GetWaterLevelNoWaves(float fX, float fY, float fZ, float *pfOutLeve
uint8 nBlock = aWaterFineBlockList[x][y];
- if ( nBlock == 0x80 )
+ if ( nBlock == NO_WATER )
return false;
ASSERT( pfOutLevel != nil );