summaryrefslogtreecommitdiff
path: root/src/roadveh_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
commit7cb7488836eb11b8da5ec9481b4bd32156716793 (patch)
treefe6e459323fff2b8b4f16fc6d9754ccddb47c11b /src/roadveh_cmd.cpp
parentad5a68a28236f8b24a9335a94ec9ea1a51705bf5 (diff)
downloadopenttd-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/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 5faf41e24..c7c38c04b 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -126,7 +126,7 @@ byte GetRoadVehLength(const Vehicle *v)
{
byte length = 8;
- uint16 veh_len = GetVehicleCallback(CBID_TRAIN_VEHICLE_LENGTH, 0, 0, v->engine_type, v);
+ uint16 veh_len = GetVehicleCallback(CBID_VEHICLE_LENGTH, 0, 0, v->engine_type, v);
if (veh_len != CALLBACK_FAILED) {
length -= clamp(veh_len, 0, 7);
}