G_RandMap should consider & all valid flags for gametype, not ==.

This commit is contained in:
toaster 2022-12-31 22:37:26 +00:00
parent 94bcf79710
commit 3357f56c9e

View file

@ -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