- fixed Playdemo and Timedemo check

The assumption that D_DoomLoop never returns does not apply anymore. Let it fall through to the end instead where this is properly handled.
This commit is contained in:
Christoph Oelckers 2022-04-29 01:38:55 +02:00
parent 2bc787b1cc
commit ff58e4ec6f

View file

@ -3520,7 +3520,6 @@ static int D_DoomMain_Internal (void)
{ {
singledemo = true; // quit after one demo singledemo = true; // quit after one demo
G_DeferedPlayDemo (v); G_DeferedPlayDemo (v);
D_DoomLoop (); // never returns
} }
else else
{ {
@ -3528,7 +3527,6 @@ static int D_DoomMain_Internal (void)
if (v) if (v)
{ {
G_TimeDemo(v); G_TimeDemo(v);
D_DoomLoop(); // never returns
} }
else else
{ {