Codechange: make GrfSpecFeature a scoped enum (#15487)

This commit is contained in:
Peter Nelson
2026-04-19 19:04:27 +01:00
committed by GitHub
parent 16b192d61f
commit 2bf84ea78c
69 changed files with 472 additions and 439 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ Town::~Town()
Source src{this->index, SourceType::Town};
DeleteSubsidyWith(src);
DeleteNewGRFInspectWindow(GSF_FAKE_TOWNS, this->index);
DeleteNewGRFInspectWindow(GrfSpecFeature::FakeTowns, this->index);
CargoPacket::InvalidateAllFrom(src);
MarkWholeScreenDirty();
}
@@ -3050,7 +3050,7 @@ static void DoClearTownHouseHelper(TileIndex tile, Town *t, HouseID house)
DecreaseBuildingCount(t, house);
DoClearSquare(tile);
DeleteNewGRFInspectWindow(GSF_HOUSES, tile.base());
DeleteNewGRFInspectWindow(GrfSpecFeature::Houses, tile.base());
}
/**