summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-30 21:06:09 +0000
committerbjarni <bjarni@openttd.org>2005-01-30 21:06:09 +0000
commit1c109afdaafe6d2ce6fe8fd34678d7f9a50d5fcd (patch)
tree8f91dc32ffed26bd5a0a2555da8a12109fd7c276 /aircraft_cmd.c
parent73c0cc5203ee748b4b38046ae7a53e4aa138cdd2 (diff)
downloadopenttd-1c109afdaafe6d2ce6fe8fd34678d7f9a50d5fcd.tar.xz
(svn r1742) - Fix: fixed bug introduced in r1730 where AI players had problems when building aircrafts
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index f853b088a..48fbfbbbd 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -166,7 +166,7 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2)
// Workaround: TODO: make AI players try to build planes in a hangar instead of just an airport tile.
if (!IsAircraftHangarTile((TileIndex)tile) && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR;
- if (_map_owner[tile] != _current_player) return CMD_ERROR;
+ if (_map_owner[tile] != _current_player && IS_HUMAN_PLAYER(_current_player)) return CMD_ERROR;
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);