summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-02 13:26:00 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-02 13:26:00 +0200
commit865ce46fdb77e769101fd8c693272eab1c800e34 (patch)
tree9e1204833df859040804cadd0736dfe53ebbdc06 /src
parentFix radio scroll when player controls disabled (diff)
downloadre3-865ce46fdb77e769101fd8c693272eab1c800e34.tar
re3-865ce46fdb77e769101fd8c693272eab1c800e34.tar.gz
re3-865ce46fdb77e769101fd8c693272eab1c800e34.tar.bz2
re3-865ce46fdb77e769101fd8c693272eab1c800e34.tar.lz
re3-865ce46fdb77e769101fd8c693272eab1c800e34.tar.xz
re3-865ce46fdb77e769101fd8c693272eab1c800e34.tar.zst
re3-865ce46fdb77e769101fd8c693272eab1c800e34.zip
Diffstat (limited to '')
-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 e0203355..cccf1d2e 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -1022,6 +1022,10 @@ const char* gRadarTexNames[] = {
void
CRadar::Initialise()
{
+#ifdef MENU_MAP
+ TargetMarkerId = -1;
+#endif
+
for (int i = 0; i < NUMRADARBLIPS; i++) {
ms_RadarTrace[i].m_BlipIndex = 1;
SetRadarMarkerState(i, false);
@@ -1107,15 +1111,23 @@ INITSAVEBUF
WriteSaveHeader(buf, 'R', 'D', 'R', '\0', *size - SAVE_HEADER_SIZE);
#ifdef MENU_MAP
+ bool bWaypointDeleted = false;
if (TargetMarkerId != -1) {
ClearBlip(TargetMarkerId);
TargetMarkerId = -1;
+ bWaypointDeleted = true;
}
#endif
for (int i = 0; i < NUMRADARBLIPS; i++)
WriteSaveBuf(buf, ms_RadarTrace[i]);
+
+#ifdef MENU_MAP
+ if(bWaypointDeleted)
+ ToggleTargetMarker(TargetMarkerPos.x, TargetMarkerPos.y);
+#endif
+
VALIDATESAVEBUF(*size);
}