From b417c0655e558de13e486ba18e9ce83a4520ed4e Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 6 Nov 2023 21:44:55 +0000 Subject: [PATCH] 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 --- src/d_netcmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index b51f1408a..d5384170f 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -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 } }