mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +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);
|
||||
}
|
||||
else if (numsectors == 0)
|
||||
{
|
||||
I_Error("Cannot play demo without its savegame\n");
|
||||
}
|
||||
C_HideConsole ();
|
||||
demonew = false;
|
||||
precache = true;
|
||||
|
@ -2652,8 +2656,10 @@ bool G_CheckDemoStatus (void)
|
|||
playeringame[i] = 0;
|
||||
consoleplayer = 0;
|
||||
players[0].camera = NULL;
|
||||
StatusBar->AttachToPlayer (&players[0]);
|
||||
|
||||
if (StatusBar != NULL)
|
||||
{
|
||||
StatusBar->AttachToPlayer (&players[0]);
|
||||
}
|
||||
if (singledemo || timingdemo)
|
||||
{
|
||||
if (timingdemo)
|
||||
|
|
Loading…
Reference in a new issue