summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-08 16:53:01 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-08 16:53:01 +0200
commitf887d515fa866c5be2830d4ff7cbeddb74fb8a1a (patch)
tree404555ee156225cddb95d2b178bd724f53b06b42 /src
parentMerge branch 'master' into miami (diff)
downloadre3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.tar
re3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.tar.gz
re3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.tar.bz2
re3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.tar.lz
re3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.tar.xz
re3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.tar.zst
re3-f887d515fa866c5be2830d4ff7cbeddb74fb8a1a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/Radar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp
index 0792008a..ff9231c6 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -1003,9 +1003,11 @@ INITSAVEBUF
WriteSaveHeader(buf, 'R', 'D', 'R', '\0', *size - SAVE_HEADER_SIZE);
#ifdef MAP_ENHANCEMENTS
+ bool bWaypointDeleted = false;
if (TargetMarkerId != -1) {
ClearBlip(TargetMarkerId);
TargetMarkerId = -1;
+ bWaypointDeleted = true;
}
#endif
@@ -1030,6 +1032,11 @@ INITSAVEBUF
SkipSaveBuf(buf, sizeof(sRadarTraceSave));
}
+#ifdef MAP_ENHANCEMENTS
+ if(bWaypointDeleted)
+ ToggleTargetMarker(TargetMarkerPos.x, TargetMarkerPos.y);
+#endif
+
VALIDATESAVEBUF(*size);
}