diff options
author | withmorten <morten.with@gmail.com> | 2021-01-29 01:18:32 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-29 01:18:32 +0100 |
commit | 2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830 (patch) | |
tree | e758bdcf95b8f626b7b8c00944075ae02ead5d72 /src | |
parent | Fix some UBs (diff) | |
download | re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.tar re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.tar.gz re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.tar.bz2 re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.tar.lz re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.tar.xz re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.tar.zst re3-2fc6b542bcf6b8cbfc4a62d66024dbb5b8a6a830.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/render/WaterLevel.cpp | 4 |
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 ); |