diff options
author | rubidium <rubidium@openttd.org> | 2007-09-26 17:33:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-26 17:33:32 +0000 |
commit | 127c7c9b0f7b7fcd3207c31260b0da2eb454dadb (patch) | |
tree | db5465ed42e7375d69aaa2e0fec4c59e9d3083af /src/articulated_vehicles.cpp | |
parent | 01edaeec578bddb73b4513baf9d8bfe5f9a886b0 (diff) | |
download | openttd-127c7c9b0f7b7fcd3207c31260b0da2eb454dadb.tar.xz |
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r-- | src/articulated_vehicles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp index 0f9fe9cc1..cf04a0c2c 100644 --- a/src/articulated_vehicles.cpp +++ b/src/articulated_vehicles.cpp @@ -17,7 +17,7 @@ uint CountArticulatedParts(EngineID engine_type, bool purchase_window) { - if (!HASBIT(EngInfo(engine_type)->callbackmask, CBM_ARTIC_ENGINE)) return 0; + if (!HASBIT(EngInfo(engine_type)->callbackmask, CBM_VEHICLE_ARTIC_ENGINE)) return 0; Vehicle *v = NULL;; if (!purchase_window) { @@ -41,7 +41,7 @@ void AddArticulatedParts(Vehicle **vl, VehicleType type) const Vehicle *v = vl[0]; Vehicle *u = vl[0]; - if (!HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_ARTIC_ENGINE)) return; + if (!HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_VEHICLE_ARTIC_ENGINE)) return; for (uint i = 1; i < MAX_UVALUE(EngineID); i++) { uint16 callback = GetVehicleCallback(CBID_VEHICLE_ARTIC_ENGINE, i, 0, v->engine_type, v); |