Tutorial course select: Fix returning to the menu behaviour

This commit is contained in:
toaster 2023-11-05 18:44:46 +00:00
parent 6b37f86be0
commit b95b076bed

View file

@ -435,12 +435,17 @@ boolean M_LevelListFromGametype(INT16 gt)
// Okay, just a list of maps then. // Okay, just a list of maps then.
boolean invalidatedcursor = ( boolean invalidatedcursor = false;
levellist.levelsearch.cup != NULL
|| levellist.levelsearch.tutorial != (gt == GT_TUTORIAL) if (gt != -1)
); {
invalidatedcursor = (
levellist.levelsearch.cup != NULL
|| levellist.levelsearch.tutorial != (gt == GT_TUTORIAL)
);
levellist.levelsearch.tutorial = (gt == GT_TUTORIAL);
}
levellist.levelsearch.cup = NULL; levellist.levelsearch.cup = NULL;
levellist.levelsearch.tutorial = (gt == GT_TUTORIAL);
UINT16 test = M_GetFirstLevelInList(&temp, &levellist.levelsearch); UINT16 test = M_GetFirstLevelInList(&temp, &levellist.levelsearch);