mirror of https://github.com/OpenTTD/OpenTTD
(svn r1151) Fix last commit |:
parent
a4e5ed68fd
commit
80a9fa962d
|
@ -1583,9 +1583,11 @@ int32 CmdBuildAirport(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||||
cost += _price.build_airport * w * h;
|
cost += _price.build_airport * w * h;
|
||||||
|
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
|
const AirportFTAClass *afc = GetAirport(p1);
|
||||||
|
|
||||||
st->owner = _current_player;
|
st->owner = _current_player;
|
||||||
if (_current_player == _local_player && p1 <= AT_INTERNATIONAL) {
|
if (_current_player == _local_player && afc->nof_depots != 0) {
|
||||||
_last_built_aircraft_depot_tile = tile + GetAirport(p1)->airport_depots[0];
|
_last_built_aircraft_depot_tile = tile + afc->airport_depots[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
st->airport_tile = tile;
|
st->airport_tile = tile;
|
||||||
|
|
Loading…
Reference in New Issue