# HG changeset patch # User tron # Date 2005-11-16 12:29:37 # Node ID 95d4080edbe868e4a719ec4d13702d097eb19ac0 # Parent 29cc5ca1c2f846fc1e65cee1841ba5d94d986fcf (svn r3202) If cascade -> switch diff --git a/station_cmd.c b/station_cmd.c --- a/station_cmd.c +++ b/station_cmd.c @@ -2170,25 +2170,26 @@ static uint32 GetTileTrackStatus_Station return j; } + static void TileLoop_Station(TileIndex tile) { - //FIXME -- GetTileTrackStatus_Station -> animated stationtiles - // hardcoded.....not good - // 0x27 - large big airport (39) - // 0x66 - radar metropolitan airport (102) - // 0x5A - radar international airport (90) - // 0x3A - flag small airport (58) - if (_m[tile].m5 == 39 || _m[tile].m5 == 58 || _m[tile].m5 == 90 || _m[tile].m5 == 102) - AddAnimatedTile(tile); - - // treat a bouy tile as water. - else if (_m[tile].m5 == 0x52) - TileLoop_Water(tile); - - // treat a oilrig (the station part) as water - else if (_m[tile].m5 == 0x4B) - TileLoop_Water(tile); - + // FIXME -- GetTileTrackStatus_Station -> animated stationtiles + // hardcoded.....not good + switch (_m[tile].m5) { + case 0x27: // large big airport + case 0x3A: // flag small airport + case 0x5A: // radar international airport + case 0x66: // radar metropolitan airport + AddAnimatedTile(tile); + break; + + case 0x4B: // oilrig (station part) + case 0x52: // bouy + TileLoop_Water(tile); + break; + + default: break; + } }