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

View file

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