From 3357f56c9e5488ba219ad65d6a0192580ce033b2 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 31 Dec 2022 22:37:26 +0000 Subject: [PATCH] G_RandMap should consider & all valid flags for gametype, not ==. --- src/g_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index 5ce2dc0a4..47b5105fc 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3410,7 +3410,7 @@ tryagain: if (!mapheaderinfo[ix] || mapheaderinfo[ix]->lumpnum == LUMPERROR) continue; - if ((mapheaderinfo[ix]->typeoflevel & tolflags) != tolflags + if (!(mapheaderinfo[ix]->typeoflevel & tolflags) || ix == pprevmap || M_MapLocked(ix+1) || (usehellmaps != (mapheaderinfo[ix]->menuflags & LF2_HIDEINMENU))) // this is bad