summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-09 19:38:12 +0000
committerrubidium <rubidium@openttd.org>2007-07-09 19:38:12 +0000
commitb876be00646fabe692fbfd2f40b2e4e738fa8627 (patch)
treefe6e459323fff2b8b4f16fc6d9754ccddb47c11b /src/articulated_vehicles.cpp
parent0452fc482dd49764e0323f78bd0c5a9818a8cc1a (diff)
downloadopenttd-b876be00646fabe692fbfd2f40b2e4e738fa8627.tar.xz
(svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments.
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index e50a458ff..9ae398f4d 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -21,7 +21,7 @@ uint CountArticulatedParts(EngineID engine_type)
uint i;
for (i = 1; i < 10; i++) {
- uint16 callback = GetVehicleCallback(CBID_TRAIN_ARTIC_ENGINE, i, 0, engine_type, NULL);
+ uint16 callback = GetVehicleCallback(CBID_VEHICLE_ARTIC_ENGINE, i, 0, engine_type, NULL);
if (callback == CALLBACK_FAILED || callback == 0xFF) break;
}
@@ -36,7 +36,7 @@ void AddArticulatedParts(Vehicle **vl, VehicleType type)
if (!HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_ARTIC_ENGINE)) return;
for (uint i = 1; i < 10; i++) {
- uint16 callback = GetVehicleCallback(CBID_TRAIN_ARTIC_ENGINE, i, 0, v->engine_type, v);
+ uint16 callback = GetVehicleCallback(CBID_VEHICLE_ARTIC_ENGINE, i, 0, v->engine_type, v);
if (callback == CALLBACK_FAILED || callback == 0xFF) return;
/* Attempt to use pre-allocated vehicles until they run out. This can happen