summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-03-05 21:52:45 +0000
committerrubidium <rubidium@openttd.org>2011-03-05 21:52:45 +0000
commite34c42de32a3a7dca800a250747ec41d485f42a3 (patch)
treed94487a13a4681c0575c894277f8ed45baf22b67 /src/articulated_vehicles.cpp
parent2aa14cc54bc7ab05a84d6f50ee772c6f40fd6099 (diff)
downloadopenttd-e34c42de32a3a7dca800a250747ec41d485f42a3.tar.xz
(svn r22205) -Codechange: replace magic number with constant
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r--src/articulated_vehicles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index 95ec4871a..0ef4d9bc4 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -328,7 +328,7 @@ void AddArticulatedParts(Vehicle *first)
v = rv;
rv->subtype = 0;
- gcache->cached_veh_length = 8; // Callback is called when the consist is finished
+ gcache->cached_veh_length = VEHICLE_LENGTH; // Callback is called when the consist is finished
rv->state = RVSB_IN_DEPOT;
rv->roadtype = front->roadtype;