diff -r d2a6acdbd665 -r 197cb8c6ae17 src/aircraft_cmd.cpp --- a/src/aircraft_cmd.cpp Sun Sep 23 07:37:38 2007 +0000 +++ b/src/aircraft_cmd.cpp Sat Oct 06 22:30:24 2007 +0000 @@ -283,7 +283,7 @@ 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] */ @@ -365,7 +365,7 @@ v->cargo_type = cargo; - if (HASBIT(EngInfo(p1)->callbackmask, CBM_REFIT_CAPACITY)) { + if (HASBIT(EngInfo(p1)->callbackmask, CBM_VEHICLE_REFIT_CAPACITY)) { callback = GetVehicleCallback(CBID_VEHICLE_REFIT_CAPACITY, 0, 0, v->engine_type, v); } @@ -646,7 +646,7 @@ /* Check the refit capacity callback */ uint16 callback = CALLBACK_FAILED; - if (HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_REFIT_CAPACITY)) { + if (HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_VEHICLE_REFIT_CAPACITY)) { /* Back up the existing cargo type */ CargoID temp_cid = v->cargo_type; byte temp_subtype = v->cargo_subtype;