diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-25 00:42:23 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-25 00:42:23 +0200 |
commit | cc731f47324cf58c899b242e34d661b651d3acef (patch) | |
tree | a096e4563ff09b208ff4697635baab2ec85395b4 /src/Radar.cpp | |
parent | CReplay::StorePedAnimation (diff) | |
download | re3-cc731f47324cf58c899b242e34d661b651d3acef.tar re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.gz re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.bz2 re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.lz re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.xz re3-cc731f47324cf58c899b242e34d661b651d3acef.tar.zst re3-cc731f47324cf58c899b242e34d661b651d3acef.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Radar.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Radar.cpp b/src/Radar.cpp index dd94341a..155ec5e0 100644 --- a/src/Radar.cpp +++ b/src/Radar.cpp @@ -1,3 +1,4 @@ +#include "config.h" #include "common.h" #include "patcher.h" #include "Radar.h" @@ -176,7 +177,7 @@ WRAPPER void CRadar::ClearBlipForEntity(eBlipType type, int32 id) { EAXJMP(0x4A5 #else void CRadar::ClearBlipForEntity(eBlipType type, int32 id) { - for (int i = 0; i < 32; i++) { + for (int i = 0; i < NUMBLIPS; i++) { if (type == ms_RadarTrace[i].m_eBlipType && id == ms_RadarTrace[i].m_nEntityHandle) { CRadar::SetRadarMarkerState(i, 0); ms_RadarTrace[i].m_bInUse = 0; @@ -322,7 +323,7 @@ void CRadar::DrawBlips() /* DrawEntityBlip */ - for (int i = 0; i < 32; i++) { + for (int i = 0; i < NUMBLIPS; i++) { if (ms_RadarTrace[i].m_bInUse) { if (ms_RadarTrace[i].m_eBlipType <= BLIP_OBJECT) { CEntity *e = nil; |