mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: make TownFounding a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
3ba0706a5c
commit
02becd50c5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user