diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-21 04:59:31 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-22 14:19:22 +0200 |
commit | f40f44b14e028c4bb2bee2e898c210e3f41b20bb (patch) | |
tree | f66810ab48dc09fd116db6d7e81822c6f760444f /src/core/Radar.cpp | |
parent | fixed COcclusion (diff) | |
download | re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.gz re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.bz2 re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.lz re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.xz re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.zst re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Radar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp index c359793c..559a8cd6 100644 --- a/src/core/Radar.cpp +++ b/src/core/Radar.cpp @@ -778,8 +778,8 @@ void CRadar::DrawRadarMap() DrawRadarMask(); // top left ist (0, 0) - int x = floorf((vec2DRadarOrigin.x - RADAR_MIN_X) / RADAR_TILE_SIZE); - int y = ceilf((RADAR_NUM_TILES - 1) - (vec2DRadarOrigin.y - RADAR_MIN_Y) / RADAR_TILE_SIZE); + int x = Floor((vec2DRadarOrigin.x - RADAR_MIN_X) / RADAR_TILE_SIZE); + int y = Ceil((RADAR_NUM_TILES - 1) - (vec2DRadarOrigin.y - RADAR_MIN_Y) / RADAR_TILE_SIZE); StreamRadarSections(x, y); RwRenderStateSet(rwRENDERSTATEFOGENABLE, (void*)FALSE); @@ -1332,7 +1332,7 @@ void CRadar::Shutdown() void CRadar::StreamRadarSections(const CVector &posn) { - StreamRadarSections(floorf((2000.0f + posn.x) / 500.0f), ceilf(7.0f - (2000.0f + posn.y) / 500.0f)); + StreamRadarSections(Floor((2000.0f + posn.x) / 500.0f), Ceil(7.0f - (2000.0f + posn.y) / 500.0f)); } void CRadar::StreamRadarSections(int32 x, int32 y) |