summaryrefslogtreecommitdiff
path: root/src/train_cmd.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/train_cmd.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/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index eaaf41cb3..db1250b62 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -231,7 +231,7 @@ void TrainConsistChanged(Vehicle* v)
/* check the vehicle length (callback) */
uint16 veh_len = CALLBACK_FAILED;
if (HASBIT(EngInfo(u->engine_type)->callbackmask, CBM_VEHICLE_LENGTH)) {
- veh_len = GetVehicleCallback(CBID_TRAIN_VEHICLE_LENGTH, 0, 0, u->engine_type, u);
+ veh_len = GetVehicleCallback(CBID_VEHICLE_LENGTH, 0, 0, u->engine_type, u);
}
if (veh_len == CALLBACK_FAILED) veh_len = rvi_u->shorten_factor;
veh_len = clamp(veh_len, 0, u->next == NULL ? 7 : 5); // the clamp on vehicles not the last in chain is stricter, as too short wagons can break the 'follow next vehicle' code