diff options
author | rubidium <rubidium@openttd.org> | 2009-09-14 12:22:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-14 12:22:57 +0000 |
commit | 64bafcbe182ef539a31ffed9bd1f19ca0f7ae62a (patch) | |
tree | 9684bfe8873532713641d2c70fb5315f60104565 /src/aircraft_cmd.cpp | |
parent | d96333b7c3ad8a1cb940f51f5ce510393158a479 (diff) | |
download | openttd-64bafcbe182ef539a31ffed9bd1f19ca0f7ae62a.tar.xz |
(svn r17534) -Codechange: unify the naming of callback masks/flags
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index fbd9de204..99faffa8e 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -387,7 +387,7 @@ CommandCost CmdBuildAircraft(TileIndex tile, DoCommandFlag flags, uint32 p1, uin if (v->cargo_type != CT_PASSENGERS) { uint16 callback = CALLBACK_FAILED; - if (HasBit(EngInfo(p1)->callbackmask, CBM_VEHICLE_REFIT_CAPACITY)) { + if (HasBit(EngInfo(p1)->callback_mask, CBM_VEHICLE_REFIT_CAPACITY)) { callback = GetVehicleCallback(CBID_VEHICLE_REFIT_CAPACITY, 0, 0, v->engine_type, v); } @@ -537,7 +537,7 @@ CommandCost CmdRefitAircraft(TileIndex tile, DoCommandFlag flags, uint32 p1, uin /* Check the refit capacity callback */ uint16 callback = CALLBACK_FAILED; - if (HasBit(EngInfo(v->engine_type)->callbackmask, CBM_VEHICLE_REFIT_CAPACITY)) { + if (HasBit(EngInfo(v->engine_type)->callback_mask, CBM_VEHICLE_REFIT_CAPACITY)) { /* Back up the existing cargo type */ CargoID temp_cid = v->cargo_type; byte temp_subtype = v->cargo_subtype; |