From 61ba58c529f3132da00da918f2970df68c02b950 Mon Sep 17 00:00:00 2001 From: Mitch Richters Date: Tue, 5 Oct 2021 08:50:05 +1100 Subject: [PATCH] - Duke: Use `DeferredGameStart()` instead of `ChangeLevel()` in `cheatLevel()` to instantly warp to the targeted map, matching DOS behaviour. * Fixes #529. --- source/games/duke/src/cheats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/cheats.cpp b/source/games/duke/src/cheats.cpp index a98cdefa1..2a093a129 100644 --- a/source/games/duke/src/cheats.cpp +++ b/source/games/duke/src/cheats.cpp @@ -299,7 +299,7 @@ static bool cheatLevel(cheatseq_t *s) auto map = FindMapByIndex(volnume, levnume); if (map) { - ChangeLevel(map, g_nextskill); + DeferredStartGame(map, g_nextskill); } return true; }