Remove duplicated code

This commit is contained in:
James R 2020-10-31 20:32:44 -07:00
parent 3eb278684a
commit 66f67267c7

View file

@ -1496,23 +1496,6 @@ void D_SRB2Main(void)
}
}
// this must be done after loading gamedata,
// to avoid setting off the corrupted gamedata code in G_LoadGameData if a SOC with custom gamedata is added
// -- Monster Iestyn 20/02/20
if (M_CheckParm("-warp") && M_IsNextParm())
{
const char *word = M_GetNextParm();
pstartmap = G_FindMapByNameOrCode(word, 0);
if (! pstartmap)
I_Error("Cannot find a map remotely named '%s'\n", word);
else
{
if (!M_CheckParm("-server"))
G_SetGameModified(multiplayer, true);
autostart = true;
}
}
if (M_CheckParm("-noupload"))
COM_BufAddText("downloading 0\n");