diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-29 17:16:40 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-29 17:16:40 +0100 |
commit | f5f153dbfdf7e913e86b25fc234b5374c362233d (patch) | |
tree | 5da8d686f09f0fe95814e55ee84f1d4741e413a9 /src/render | |
parent | Even more fixes & shorten quit screen (diff) | |
parent | fix NewRender typo (diff) | |
download | re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.tar re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.tar.gz re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.tar.bz2 re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.tar.lz re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.tar.xz re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.tar.zst re3-f5f153dbfdf7e913e86b25fc234b5374c362233d.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/WaterLevel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 08fd5e6e..d67b9d42 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -318,6 +318,7 @@ CWaterLevel::Shutdown() _DELETE_TEXTURE(gpWaterTex); _DELETE_TEXTURE(gpWaterEnvTex); + _DELETE_TEXTURE(gpWaterWakeTex); _DELETE_TEXTURE(gpWaterEnvBaseTex); #undef _DELETE_TEXTURE @@ -714,9 +715,9 @@ 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 == 0x80 ) + if ( nBlock == NO_WATER ) return false; ASSERT( pfOutLevel != nil ); @@ -756,9 +757,9 @@ 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 == 0x80 ) + if ( nBlock == NO_WATER ) return false; ASSERT( pfOutLevel != nil ); |