diff options
author | aap <aap@papnet.eu> | 2020-12-16 13:32:03 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-16 13:32:03 +0100 |
commit | 78c7459b3a2d9cbca3b9e4c457834c6d13be05d7 (patch) | |
tree | 5a0cd0397c399f9e65f28e245f104537268d69db /src/render | |
parent | tiny water sync (diff) | |
download | re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.tar re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.tar.gz re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.tar.bz2 re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.tar.lz re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.tar.xz re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.tar.zst re3-78c7459b3a2d9cbca3b9e4c457834c6d13be05d7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/WaterLevel.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 68321e73..b698a5b2 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -179,14 +179,10 @@ WaterLevelInitialise(Const char *pWaterDat) int32 t = WATER_HUGE_Y(CWaterLevel::ms_aWaterRects[i].top); int32 b = WATER_HUGE_Y(CWaterLevel::ms_aWaterRects[i].bottom) + 1.0f; -#ifdef FIX_BUGS - // water.dat has rects that go out of bounds - // which causes memory corruption l = clamp(l, 0, MAX_SMALL_SECTORS - 1); r = clamp(r, 0, MAX_SMALL_SECTORS - 1); t = clamp(t, 0, MAX_SMALL_SECTORS - 1); b = clamp(b, 0, MAX_SMALL_SECTORS - 1); -#endif for (int32 x = l; x <= r; x++) { |