diff options
author | withmorten <morten.with@gmail.com> | 2021-01-29 17:57:51 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-29 17:57:51 +0100 |
commit | 990637bf52142eb09fb9c38d9c9a5c8abd98050b (patch) | |
tree | 7f88df1339e243e845c7bd3219cf416a744818b0 /src/render | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
download | re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.tar re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.tar.gz re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.tar.bz2 re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.tar.lz re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.tar.xz re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.tar.zst re3-990637bf52142eb09fb9c38d9c9a5c8abd98050b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/WaterLevel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index d67b9d42..1ba615c0 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -1077,7 +1077,7 @@ CWaterLevel::RenderWater() { for ( int32 y = 0; y < 5; y++ ) { - float fX = WATER_SIGN_X(float(x) * EXTRAHUGE_SECTOR_SIZE) - 1280.0f - 400.0f; + float fX = WATER_SIGN_X(float(x) * EXTRAHUGE_SECTOR_SIZE) - 1280.0f - WATER_X_OFFSET; float fY = WATER_SIGN_Y(float(y) * EXTRAHUGE_SECTOR_SIZE) - 1280.0f; if ( !bUseCamStartY ) @@ -1463,7 +1463,7 @@ CWaterLevel::RenderTransparentWater(void) int32 nBlock; - int32 BlockX = WATER_TO_SMALL_SECTOR_X(fCamX + 400.0f) + 1; + int32 BlockX = WATER_TO_SMALL_SECTOR_X(fCamX + WATER_X_OFFSET) + 1; int32 BlockY = WATER_TO_SMALL_SECTOR_Y(fCamY) + 1; if (_IsColideWithBlock(BlockX, BlockY, nBlock)) @@ -1473,7 +1473,7 @@ CWaterLevel::RenderTransparentWater(void) float fMaskX = Floor(fCamX / 2.0f) * 2.0f; float fMaskY = Floor(fCamY / 2.0f) * 2.0f; float fWaterZ = CWaterLevel::ms_aWaterZs[nBlock]; - float fSectorX = WATER_FROM_SMALL_SECTOR_X(BlockX) - 400.0f; + float fSectorX = WATER_FROM_SMALL_SECTOR_X(BlockX) - WATER_X_OFFSET; float fSectorY = WATER_FROM_SMALL_SECTOR_Y(BlockY); RenderWavyMask(fMaskX, fMaskY, fWaterZ, |