diff options
author | rubidium <rubidium@openttd.org> | 2007-07-09 19:38:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-09 19:38:12 +0000 |
commit | 7cb7488836eb11b8da5ec9481b4bd32156716793 (patch) | |
tree | fe6e459323fff2b8b4f16fc6d9754ccddb47c11b /src/articulated_vehicles.cpp | |
parent | ad5a68a28236f8b24a9335a94ec9ea1a51705bf5 (diff) | |
download | openttd-7cb7488836eb11b8da5ec9481b4bd32156716793.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.cpp | 4 |
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 |