- 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 (!checkCheat(c)) return false;
if (!currentLevel) return true; if (!currentLevel) return true;
auto map = FindMapByLevelNum(currentLevel->levelNumber + 1); auto map = FindNextMap(currentLevel);
if (map) DeferedStartGame(map, -1); if (map) DeferedStartGame(map, -1);
return true; return true;
} }

View file

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