More sanity checks for skipping restricted queue entries

- GTR_FORBIDMP in netgames
- mapheader doesn't exist
This commit is contained in:
toaster 2023-04-11 13:20:25 +01:00
parent f1ca263c40
commit d4de130fe0

View file

@ -4125,6 +4125,8 @@ static void G_GetNextMap(void)
while (roundqueue.position < roundqueue.size
&& (roundqueue.entries[roundqueue.position].mapnum >= nummapheaders
|| mapheaderinfo[roundqueue.entries[roundqueue.position].mapnum] == NULL
|| (netgame && (gametypes[roundqueue.entries[roundqueue.position].gametype]->rules & GTR_FORBIDMP))
|| (permitrank == false && roundqueue.entries[roundqueue.position].rankrestricted == true)))
{
// Skip all restricted queue entries.