From 3ca73b0c4cca0e9db9b3df1b09e5a2f4a73cb3c4 Mon Sep 17 00:00:00 2001 From: frosch Date: Fri, 9 Jan 2009 23:04:51 +0000 Subject: (svn r14945) -Feature(ette): Support var 0x45 (curvature info) also for road vehicles. --- src/newgrf_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3-70-g09d2