Codechange: Turn AnimationStatus into an enum class.

This commit is contained in:
frosch
2025-04-15 17:11:17 +02:00
committed by frosch
parent 47f0f4dd9e
commit 03ed59a004
16 changed files with 33 additions and 29 deletions

View File

@@ -2617,7 +2617,7 @@ CommandCost CmdBuildAirport(DoCommandFlags flags, TileIndex tile, uint8_t airpor
SetStationTileRandomBits(t, GB(Random(), 0, 4));
st->airport.Add(iter);
if (AirportTileSpec::Get(GetTranslatedAirportTileID(iter.GetStationGfx()))->animation.status != ANIM_STATUS_NO_ANIMATION) AddAnimatedTile(t);
if (AirportTileSpec::Get(GetTranslatedAirportTileID(iter.GetStationGfx()))->animation.status != AnimationStatus::NoAnimation) AddAnimatedTile(t);
}
/* Only call the animation trigger after all tiles have been built */