mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
Merge pull request #426 from alexey-lysiuk/fix_finishgame
Fixed crash on finishgame CCMD in non-game modes
This commit is contained in:
commit
466d56a77a
1 changed files with 7 additions and 0 deletions
|
@ -698,6 +698,13 @@ void G_DoCompleted (void)
|
||||||
|
|
||||||
gameaction = ga_nothing;
|
gameaction = ga_nothing;
|
||||||
|
|
||||||
|
if ( gamestate == GS_DEMOSCREEN
|
||||||
|
|| gamestate == GS_FULLCONSOLE
|
||||||
|
|| gamestate == GS_STARTUP)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (gamestate == GS_TITLELEVEL)
|
if (gamestate == GS_TITLELEVEL)
|
||||||
{
|
{
|
||||||
level.MapName = nextlevel;
|
level.MapName = nextlevel;
|
||||||
|
|
Loading…
Reference in a new issue