- Fixed: Using -playdemo in conjunction with -loadgame did not work.

SVN r3481 (trunk)
This commit is contained in:
Randy Heit 2012-03-25 01:54:36 +00:00
commit cc34f973e2
3 changed files with 24 additions and 13 deletions

View file

@ -2329,6 +2329,15 @@ void D_DoomMain (void)
V_Init2();
v = Args->CheckValue ("-loadgame");
if (v)
{
FString file(v);
FixPathSeperator (file);
DefaultExtension (file, ".zds");
G_LoadGame (file);
}
v = Args->CheckValue("-playdemo");
if (v != NULL)
{
@ -2343,15 +2352,6 @@ void D_DoomMain (void)
G_TimeDemo (v);
D_DoomLoop (); // never returns
}
v = Args->CheckValue ("-loadgame");
if (v)
{
FString file(v);
FixPathSeperator (file);
DefaultExtension (file, ".zds");
G_LoadGame (file);
}
if (gameaction != ga_loadgame && gameaction != ga_loadgamehidecon)
{