- changed 3 places to call the proper map progression function.

These ignored the explicit settings in the map definition.
This commit is contained in:
Christoph Oelckers 2021-05-01 23:10:04 +02:00
parent f3eb476fbf
commit 727244d52d
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ bool NextCheat(cheatseq_t* c)
{
if (!checkCheat(c)) return false;
if (!currentLevel) return true;
auto map = FindMapByLevelNum(currentLevel->levelNumber + 1);
auto map = FindNextMap(currentLevel);
if (map) DeferedStartGame(map, -1);
return true;
}

View File

@ -1913,7 +1913,7 @@ OperateSprite(short SpriteNum, short player_is_operating)
if (sp->hitag)
map = FindMapByLevelNum(sp->hitag);
else
map = FindMapByLevelNum(currentLevel->levelNumber + 1);
map = FindNextMap(currentLevel);
ChangeLevel(map, -1);
return true;
@ -2095,7 +2095,7 @@ OperateTripTrigger(PLAYERp pp)
if (sectp->hitag)
map = FindMapByLevelNum(sectp->hitag);
else
map = FindMapByLevelNum(currentLevel->levelNumber + 1);
map = FindNextMap(currentLevel);
ChangeLevel(map, -1);
break;
}