Fixed VM abort when drawing from ZScript happens during 0 game tic

https://forum.zdoom.org/viewtopic.php?t=58523
https://forum.zdoom.org/viewtopic.php?t=58780
This commit is contained in:
alexey.lysiuk 2017-12-19 18:07:29 +02:00
parent 8c60c3c532
commit 90c734a39f
1 changed files with 6 additions and 0 deletions

View File

@ -797,7 +797,13 @@ void D_Display ()
case GS_LEVEL:
case GS_TITLELEVEL:
if (!gametic)
{
if (!screen->HasBegun2D())
{
screen->Begin2D(false);
}
break;
}
if (StatusBar != NULL)
{