mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
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:
parent
4ecc378bb6
commit
b417c0655e
1 changed files with 3 additions and 1 deletions
|
|
@ -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...
|
// Let's just guess so we don't have to specify the gametype EVERY time...
|
||||||
newgametype = G_GuessGametypeByTOL(mapheaderinfo[newmapnum-1]->typeoflevel);
|
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));
|
CONS_Alert(CONS_WARNING, M_GetText("%s (%s) doesn't support any known gametype!\n"), realmapname, G_BuildMapName(newmapnum));
|
||||||
Z_Free(realmapname);
|
Z_Free(realmapname);
|
||||||
Z_Free(mapname);
|
Z_Free(mapname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newgametype = GT_RACE; // sensible default
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue