diff options
author | richk <richk@openttd.org> | 2006-06-26 20:58:49 +0000 |
---|---|---|
committer | richk <richk@openttd.org> | 2006-06-26 20:58:49 +0000 |
commit | 2132dcf5b27dd8854dfccd097f20cf348f33d70b (patch) | |
tree | 81326a9ebce6d7b7e68ded7de6c681af00300262 /aircraft_cmd.c | |
parent | 074febd34567975753bb905dd5362e9260a9e53a (diff) | |
download | openttd-2132dcf5b27dd8854dfccd097f20cf348f33d70b.tar.xz |
(svn r5376) - Fix: Changed error message when trying to build a CTOL aircraft at a helidepot/helistation to "Airport has no runway". (Thanks to MeusH). Osprey can now be built at helidepot/helistation. (Thanks to mart3p).
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 5a664abdd..8d782cffb 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -219,8 +219,8 @@ int32 CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) // prevent building of aircraft in helidepot/helistation st2 = GetStationByTile(tile); - if ((avi->subtype != 0) && (GetAirport(st2->airport_type)->acc_planes == HELICOPTERS_ONLY)) { - return_cmd_error(STR_ENGINE_NOT_BUILDABLE); + if ((avi->subtype & AIR_CTOL) && (GetAirport(st2->airport_type)->acc_planes == HELICOPTERS_ONLY)) { + return_cmd_error(STR_AIRPORT_HAS_NO_RUNWAY); } unit_num = (HASBIT(p2, 0) == true) ? 0 : GetFreeUnitNumber(VEH_Aircraft); |