From b876be00646fabe692fbfd2f40b2e4e738fa8627 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Jul 2007 19:38:12 +0000 Subject: (svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/train_cmd.cpp') 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 -- cgit v1.2.3-54-g00ecf