summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-01 20:23:09 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-01 20:23:09 +0200
commit026ed72bfc6ce52cf614d739b9f40c8092c47036 (patch)
treee6ec1df25a3cde60b43ca17f60d328e79177c399 /src/core/Radar.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
parentMerge pull request #501 from erorcun/erorcun (diff)
downloadre3-026ed72bfc6ce52cf614d739b9f40c8092c47036.tar
re3-026ed72bfc6ce52cf614d739b9f40c8092c47036.tar.gz
re3-026ed72bfc6ce52cf614d739b9f40c8092c47036.tar.bz2
re3-026ed72bfc6ce52cf614d739b9f40c8092c47036.tar.lz
re3-026ed72bfc6ce52cf614d739b9f40c8092c47036.tar.xz
re3-026ed72bfc6ce52cf614d739b9f40c8092c47036.tar.zst
re3-026ed72bfc6ce52cf614d739b9f40c8092c47036.zip
Diffstat (limited to 'src/core/Radar.cpp')
-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 2b3e6f1e..3d1429bd 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -1064,6 +1064,13 @@ void CRadar::SaveAllRadarBlips(uint8 *buf, uint32 *size)
INITSAVEBUF
WriteSaveHeader(buf, 'R', 'D', 'R', '\0', *size - SAVE_HEADER_SIZE);
+#ifdef MENU_MAP
+ if (TargetMarkerId != -1) {
+ ClearBlip(TargetMarkerId);
+ TargetMarkerId = -1;
+ }
+#endif
+
for (int i = 0; i < NUMRADARBLIPS; i++)
WriteSaveBuf(buf, ms_RadarTrace[i]);