station_cmd.c
changeset 2425 99e1e8430a28
parent 2422 914a12dee832
child 2427 b7a0ad02af26
--- a/station_cmd.c	Wed Sep 14 17:21:30 2005 +0000
+++ b/station_cmd.c	Wed Sep 14 18:03:38 2005 +0000
@@ -1782,9 +1782,8 @@
 		const AirportFTAClass *afc = GetAirport(p1);
 
 		st->owner = _current_player;
-		if (_current_player == _local_player && afc->nof_depots != 0) {
-      _last_built_aircraft_depot_tile = tile + ToTileIndexDiff(afc->airport_depots[0]);
-    }
+		if (IsLocalPlayer() && afc->nof_depots != 0)
+			_last_built_aircraft_depot_tile = tile + ToTileIndexDiff(afc->airport_depots[0]);
 
 		st->airport_tile = tile;
 		if (!st->facilities) st->xy = tile;