mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
- Fixed: Trying to -playdemo a demo recorded from -loadgame would crash if you did not -loadgame
the corresponding save. SVN r3498 (trunk)
This commit is contained in:
parent
10c783dde2
commit
f6f8d74635
1 changed files with 8 additions and 2 deletions
|
@ -2589,6 +2589,10 @@ void G_DoPlayDemo (void)
|
||||||
{
|
{
|
||||||
G_InitNew (mapname, false);
|
G_InitNew (mapname, false);
|
||||||
}
|
}
|
||||||
|
else if (numsectors == 0)
|
||||||
|
{
|
||||||
|
I_Error("Cannot play demo without its savegame\n");
|
||||||
|
}
|
||||||
C_HideConsole ();
|
C_HideConsole ();
|
||||||
demonew = false;
|
demonew = false;
|
||||||
precache = true;
|
precache = true;
|
||||||
|
@ -2652,8 +2656,10 @@ bool G_CheckDemoStatus (void)
|
||||||
playeringame[i] = 0;
|
playeringame[i] = 0;
|
||||||
consoleplayer = 0;
|
consoleplayer = 0;
|
||||||
players[0].camera = NULL;
|
players[0].camera = NULL;
|
||||||
|
if (StatusBar != NULL)
|
||||||
|
{
|
||||||
StatusBar->AttachToPlayer (&players[0]);
|
StatusBar->AttachToPlayer (&players[0]);
|
||||||
|
}
|
||||||
if (singledemo || timingdemo)
|
if (singledemo || timingdemo)
|
||||||
{
|
{
|
||||||
if (timingdemo)
|
if (timingdemo)
|
||||||
|
|
Loading…
Reference in a new issue