mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Fixed crash on finishgame CCMD in non-game modes
http://forum.zdoom.org/viewtopic.php?t=49943
This commit is contained in:
parent
a8ac748123
commit
20bf4d6c8e
1 changed files with 7 additions and 0 deletions
|
@ -698,6 +698,13 @@ void G_DoCompleted (void)
|
|||
|
||||
gameaction = ga_nothing;
|
||||
|
||||
if ( gamestate == GS_DEMOSCREEN
|
||||
|| gamestate == GS_FULLCONSOLE
|
||||
|| gamestate == GS_STARTUP)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (gamestate == GS_TITLELEVEL)
|
||||
{
|
||||
level.MapName = nextlevel;
|
||||
|
|
Loading…
Reference in a new issue