summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-01-09 23:04:51 +0000
committerfrosch <frosch@openttd.org>2009-01-09 23:04:51 +0000
commite13dc4d99dbb7e766e5d5bed968c14ce24544210 (patch)
treeb841c9955be9718bbe34f9ca7efcf1afdaa4ab10 /src
parentc0e7434f3815e73a28e1cfe9a9b0d4eb4bf6d40b (diff)
downloadopenttd-e13dc4d99dbb7e766e5d5bed968c14ce24544210.tar.xz
(svn r14945) -Feature(ette): Support var 0x45 (curvature info) also for road vehicles.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index 876ce6cb0..b56ae766a 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -582,7 +582,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
* B - current wagon to next wagon, 0 if wagon is last
* T - previous wagon to next wagon, 0 in an S-bend
*/
- if (v->type != VEH_TRAIN) return 0;
+ if (v->type != VEH_TRAIN && v->type != VEH_ROAD) return 0;
const Vehicle *u_p = v->Previous();
const Vehicle *u_n = v->Next();