waterlevel fix

This commit is contained in:
withmorten 2021-01-29 01:18:32 +01:00
parent 810bad9fd8
commit 2fc6b542bc

View file

@ -716,7 +716,7 @@ CWaterLevel::GetWaterLevel(float fX, float fY, float fZ, float *pfOutLevel, bool
uint8 nBlock = aWaterFineBlockList[x][y]; uint8 nBlock = aWaterFineBlockList[x][y];
if ( nBlock == 0x80 ) if ( nBlock == NO_WATER )
return false; return false;
ASSERT( pfOutLevel != nil ); ASSERT( pfOutLevel != nil );
@ -758,7 +758,7 @@ CWaterLevel::GetWaterLevelNoWaves(float fX, float fY, float fZ, float *pfOutLeve
uint8 nBlock = aWaterFineBlockList[x][y]; uint8 nBlock = aWaterFineBlockList[x][y];
if ( nBlock == 0x80 ) if ( nBlock == NO_WATER )
return false; return false;
ASSERT( pfOutLevel != nil ); ASSERT( pfOutLevel != nil );