summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-10-05 22:13:35 +0000
committerglx <glx@openttd.org>2007-10-05 22:13:35 +0000
commit8e5480aa1697c1e86308a898875b37324dc4200b (patch)
treeb5b767bc7b9c9aa3ef1f2fe1aa876ed2fd8bfebe /src/aircraft_cmd.cpp
parent0fd7d6257bfe72dcac6b78adee0ac3f83b0d4724 (diff)
downloadopenttd-8e5480aa1697c1e86308a898875b37324dc4200b.tar.xz
(svn r11214) -Fix [FS#1296]: planes can't use heliports so refuse these orders
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index e1b1ba77f..b8bbf8d07 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -282,7 +282,7 @@ CommandCost CmdBuildAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
/* Prevent building aircraft types at places which can't handle them */
- if (!IsAircraftBuildableAtStation(p1, tile)) return CMD_ERROR;
+ if (!CanAircraftUseStation(p1, tile)) return CMD_ERROR;
/* Allocate 2 or 3 vehicle structs, depending on type
* vl[0] = aircraft, vl[1] = shadow, [vl[2] = rotor] */