From 8aa58e3e883b55e53dc3c4a0648da404da293d93 Mon Sep 17 00:00:00 2001 From: AJ Martinez <aj@worldsbe.st> Date: Thu, 25 Apr 2024 21:00:48 -0700 Subject: [PATCH] Exclude something special from f_maps --- src/m_pw.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/m_pw.cpp b/src/m_pw.cpp index acc3859de4..0309a57744 100644 --- a/src/m_pw.cpp +++ b/src/m_pw.cpp @@ -325,6 +325,8 @@ void f_maps() continue; if (mapheaderinfo[i]->typeoflevel & TOL_VERSUS) continue; + if (!strcmp(mapheaderinfo[i]->lumpname, "RR_HIDDENPALACE")) + continue; mapheaderinfo[i]->records.mapvisited |= GD_MV_SET; success = true; } @@ -333,12 +335,12 @@ void f_maps() if (success) { S_StartSound(0, sfx_kc42); - M_StartMessage("// FIXME don't crash in certification test", "Unlocked all maps. Go see the world!", NULL, MM_NOTHING, NULL, NULL); + M_StartMessage("// FIXME don't crash in certification test", "Unlocked most maps. Go see the world!", NULL, MM_NOTHING, NULL, NULL); G_SaveGameData(); } else { - M_StartMessage("// FIXME don't crash in certification test", "You've already unlocked all maps.", NULL, MM_NOTHING, NULL, NULL); + M_StartMessage("// FIXME don't crash in certification test", "There are no maps to unlock.", NULL, MM_NOTHING, NULL, NULL); } } -- GitLab