Codechange: make TownFounding a scoped enum

This commit is contained in:
Peter Nelson
2026-06-28 17:07:13 +01:00
committed by Peter Nelson
parent 3ba0706a5c
commit 02becd50c5
7 changed files with 16 additions and 18 deletions
+1 -1
View File
@@ -386,7 +386,7 @@ static void AircraftRangeChanged(int32_t)
static void TownFoundingChanged(int32_t)
{
if (_game_mode != GameMode::Editor && _settings_game.economy.found_town == TF_FORBIDDEN) {
if (_game_mode != GameMode::Editor && _settings_game.economy.found_town == TownFounding::Forbidden) {
CloseWindowById(WindowClass::FoundTown, 0);
} else {
InvalidateWindowData(WindowClass::FoundTown, 0);