Fix extra aspects variable not being set for newly generated maps

This commit is contained in:
Jonathan G Rennison
2021-09-12 17:36:47 +01:00
parent fbc2d9fd46
commit 5be32627b7
3 changed files with 15 additions and 1 deletions

View File

@@ -1467,7 +1467,7 @@ void UpdateAllSignalAspects()
}
}
void UpdateExtraAspectsVariable()
static uint8 DetermineExtraAspectsVariable()
{
uint8 new_extra_aspects = 0;
@@ -1481,6 +1481,12 @@ void UpdateExtraAspectsVariable()
}
}
return new_extra_aspects;
}
void UpdateExtraAspectsVariable()
{
uint8 new_extra_aspects = DetermineExtraAspectsVariable();
if (new_extra_aspects != _extra_aspects) {
_extra_aspects = new_extra_aspects;
@@ -1488,3 +1494,8 @@ void UpdateExtraAspectsVariable()
MarkWholeScreenDirty();
}
}
void InitialiseExtraAspectsVariable()
{
_extra_aspects = DetermineExtraAspectsVariable();
}