Allow ZScript to control saving and the automap

This commit is contained in:
nashmuhandes 2023-04-09 03:52:58 +08:00
commit 8204879ff8
9 changed files with 68 additions and 0 deletions

View file

@ -1547,6 +1547,12 @@ void DAutomap::Ticker ()
if (!automapactive)
return;
if ((primaryLevel->flags9 & LEVEL9_NOAUTOMAP))
{
AM_ToggleMap();
return;
}
amclock++;
}
@ -3447,6 +3453,9 @@ void AM_ToggleMap()
if (!primaryLevel || !primaryLevel->automap)
return;
if (!automapactive && (primaryLevel->flags9 & LEVEL9_NOAUTOMAP))
return;
if (!automapactive)
{
// Reset AM buttons