Map command: If you provide -force and the level has no associated gametype, safely assume Race as the default instead of requiring a -gt race addition

This commit is contained in:
toaster 2023-11-06 21:44:55 +00:00
parent 4ecc378bb6
commit b417c0655e

View file

@ -2422,13 +2422,15 @@ static void Command_Map_f(void)
// Let's just guess so we don't have to specify the gametype EVERY time...
newgametype = G_GuessGametypeByTOL(mapheaderinfo[newmapnum-1]->typeoflevel);
if (newgametype == -1)
if (!option_force && newgametype == -1)
{
CONS_Alert(CONS_WARNING, M_GetText("%s (%s) doesn't support any known gametype!\n"), realmapname, G_BuildMapName(newmapnum));
Z_Free(realmapname);
Z_Free(mapname);
return;
}
newgametype = GT_RACE; // sensible default
}
}