mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 07:45:40 +00:00
more tiny water sync
This commit is contained in:
parent
0d97a31ce9
commit
78c7459b3a
1 changed files with 0 additions and 4 deletions
|
@ -179,14 +179,10 @@ WaterLevelInitialise(Const char *pWaterDat)
|
||||||
int32 t = WATER_HUGE_Y(CWaterLevel::ms_aWaterRects[i].top);
|
int32 t = WATER_HUGE_Y(CWaterLevel::ms_aWaterRects[i].top);
|
||||||
int32 b = WATER_HUGE_Y(CWaterLevel::ms_aWaterRects[i].bottom) + 1.0f;
|
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);
|
l = clamp(l, 0, MAX_SMALL_SECTORS - 1);
|
||||||
r = clamp(r, 0, MAX_SMALL_SECTORS - 1);
|
r = clamp(r, 0, MAX_SMALL_SECTORS - 1);
|
||||||
t = clamp(t, 0, MAX_SMALL_SECTORS - 1);
|
t = clamp(t, 0, MAX_SMALL_SECTORS - 1);
|
||||||
b = clamp(b, 0, MAX_SMALL_SECTORS - 1);
|
b = clamp(b, 0, MAX_SMALL_SECTORS - 1);
|
||||||
#endif
|
|
||||||
|
|
||||||
for (int32 x = l; x <= r; x++)
|
for (int32 x = l; x <= r; x++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue