diff options
author | rubidium <rubidium@openttd.org> | 2008-04-21 13:45:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-21 13:45:03 +0000 |
commit | bbe13a0623eea9f46353fca57a35ae745040fbaf (patch) | |
tree | c45ca2198e745f3be4cfbe13a2949d2699a4b1f3 /src/aircraft_cmd.cpp | |
parent | 5a17e6b395beb773c992b2195f80d25d3bfc9759 (diff) | |
download | openttd-bbe13a0623eea9f46353fca57a35ae745040fbaf.tar.xz |
(svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index e1ebdba0f..a2da629ac 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -530,7 +530,7 @@ CommandCost CmdStartStopAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 /* Check if this aircraft can be started/stopped. The callback will fail or * return 0xFF if it can. */ uint16 callback = GetVehicleCallback(CBID_VEHICLE_START_STOP_CHECK, 0, 0, v->engine_type, v); - if (callback != CALLBACK_FAILED && callback != 0xFF) { + if (callback != CALLBACK_FAILED && GB(callback, 0, 8) != 0xFF) { StringID error = GetGRFStringID(GetEngineGRFID(v->engine_type), 0xD000 + callback); return_cmd_error(error); } |