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.
boolean invalidatedcursor = (
levellist.levelsearch.cup != NULL
|| levellist.levelsearch.tutorial != (gt == GT_TUTORIAL)
);
boolean invalidatedcursor = false;
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.tutorial = (gt == GT_TUTORIAL);
UINT16 test = M_GetFirstLevelInList(&temp, &levellist.levelsearch);