summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.cpp
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-09-26 20:11:25 +0200
committerSergeanur <s.anureev@yandex.ua>2020-09-30 01:14:10 +0200
commit35d7591defb352c2af49af0d6e0d3340e7b59672 (patch)
tree7ebab71a962e176826552e2c6d48287c85ecb332 /src/core/Radar.cpp
parentMerge pull request #718 from Nick007J/miami (diff)
downloadre3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.gz
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.bz2
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.lz
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.xz
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.zst
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.zip
Diffstat (limited to 'src/core/Radar.cpp')
-rw-r--r--src/core/Radar.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp
index 559a8cd6..b9fc369d 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -1151,6 +1151,10 @@ int CRadar::SetCoordBlip(eBlipType type, CVector pos, int32 color, eBlipDisplay
if (!ms_RadarTrace[nextBlip].m_bInUse)
break;
}
+#ifdef FIX_BUGS
+ if (nextBlip == NUMRADARBLIPS)
+ return -1;
+#endif
ms_RadarTrace[nextBlip].m_eBlipType = type;
ms_RadarTrace[nextBlip].m_nColor = color;
ms_RadarTrace[nextBlip].m_bDim = true;
@@ -1182,6 +1186,10 @@ int CRadar::SetEntityBlip(eBlipType type, int32 handle, int32 color, eBlipDispla
if (!ms_RadarTrace[nextBlip].m_bInUse)
break;
}
+#ifdef FIX_BUGS
+ if (nextBlip == NUMRADARBLIPS)
+ return -1;
+#endif
ms_RadarTrace[nextBlip].m_eBlipType = type;
ms_RadarTrace[nextBlip].m_nColor = color;
ms_RadarTrace[nextBlip].m_bDim = true;
@@ -1526,6 +1534,10 @@ CRadar::ToggleTargetMarker(float x, float y)
if (!ms_RadarTrace[nextBlip].m_bInUse)
break;
}
+#ifdef FIX_BUGS
+ if (nextBlip == NUMRADARBLIPS)
+ return;
+#endif
ms_RadarTrace[nextBlip].m_eBlipType = BLIP_COORD;
ms_RadarTrace[nextBlip].m_nColor = 0x333333FF;
ms_RadarTrace[nextBlip].m_bDim = 1;