diff options
author | glx <glx@openttd.org> | 2007-10-05 22:13:35 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-10-05 22:13:35 +0000 |
commit | 8e5480aa1697c1e86308a898875b37324dc4200b (patch) | |
tree | b5b767bc7b9c9aa3ef1f2fe1aa876ed2fd8bfebe /src/build_vehicle_gui.cpp | |
parent | 0fd7d6257bfe72dcac6b78adee0ac3f83b0d4724 (diff) | |
download | openttd-8e5480aa1697c1e86308a898875b37324dc4200b.tar.xz |
(svn r11214) -Fix [FS#1296]: planes can't use heliports so refuse these orders
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 4cbc267be..bd4938111 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -765,7 +765,7 @@ static void GenerateBuildAircraftList(Window *w) for (eid = AIRCRAFT_ENGINES_INDEX; eid < AIRCRAFT_ENGINES_INDEX + NUM_AIRCRAFT_ENGINES; eid++) { if (!IsEngineBuildable(eid, VEH_AIRCRAFT, _local_player)) continue; /* First VEH_END window_numbers are fake to allow a window open for all different types at once */ - if (w->window_number > VEH_END && !IsAircraftBuildableAtStation(eid, w->window_number)) continue; + if (w->window_number > VEH_END && !CanAircraftUseStation(eid, w->window_number)) continue; EngList_Add(&bv->eng_list, eid); if (eid == bv->sel_engine) sel_id = eid; |