Merge pull request #426 from alexey-lysiuk/fix_finishgame

Fixed crash on finishgame CCMD in non-game modes
This commit is contained in:
coelckers 2015-11-21 16:46:48 +01:00
commit 466d56a77a

View file

@ -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;