Move gamedata param to cover -resetdata

This commit is contained in:
James R 2019-10-27 10:33:40 -07:00
parent 4ac136f626
commit 2078b47952

View file

@ -3358,14 +3358,14 @@ void G_LoadGameData(void)
// Allow saving of gamedata beyond this point
gamedataloaded = true;
if (M_CheckParm("-resetdata"))
return; // Don't load (essentially, reset).
if (M_CheckParm("-gamedata") && M_IsNextParm())
{
strlcpy(gamedatafilename, M_GetNextParm(), sizeof gamedatafilename);
}
if (M_CheckParm("-resetdata"))
return; // Don't load (essentially, reset).
length = FIL_ReadFile(va(pandf, srb2home, gamedatafilename), &savebuffer);
if (!length) // Aw, no game data. Their loss!
return;