devmode password: unlock all maps

This commit is contained in:
James R. 2023-09-11 04:39:51 -07:00
parent 3dafc6e724
commit 29017d24d6

View file

@ -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);