From 29017d24d6c052324810d66517848d3bc3d7efbc Mon Sep 17 00:00:00 2001 From: "James R." Date: Mon, 11 Sep 2023 04:39:51 -0700 Subject: [PATCH] devmode password: unlock all maps --- src/m_cheat.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/m_cheat.c b/src/m_cheat.c index 8e7a708e6..b4cb60d83 100644 --- a/src/m_cheat.c +++ b/src/m_cheat.c @@ -133,7 +133,7 @@ static UINT8 cheatf_wrongwarp(void) #ifdef DEVELOP static UINT8 cheatf_devmode(void) { - UINT16 i; + INT32 i; if (modifiedgame) return 0; @@ -146,6 +146,12 @@ static UINT8 cheatf_devmode(void) gamedata->unlocked[i] = true; } + // Unlock all hidden levels. + for (i = 0; i < nummapheaders; i++) + { + mapheaderinfo[i]->records.mapvisited = MV_MAX; + } + // This is a developer feature, you know how to delete ringdata // G_SetUsedCheats(); S_StartSound(0, sfx_kc42);