mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r14945) -Feature(ette): Support var 0x45 (curvature info) also for road vehicles.
This commit is contained in:
parent
cda853872a
commit
3ca73b0c4c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user