From 78c7459b3a2d9cbca3b9e4c457834c6d13be05d7 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 16 Dec 2020 13:32:03 +0100 Subject: more tiny water sync --- src/render/WaterLevel.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/render') 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++) { -- cgit v1.2.3