mirror of https://github.com/OpenTTD/OpenTTD.git
Fix ddd609c: Reverse build probability callback was not called for articulated parts. (#11526)
This commit is contained in:
parent
4a5ab331e2
commit
cc488ec6c9
|
@ -431,6 +431,7 @@ void AddArticulatedParts(Vehicle *first)
|
|||
|
||||
if (flip_image) v->spritenum++;
|
||||
|
||||
if (v->type == VEH_TRAIN && TestVehicleBuildProbability(v, v->engine_type, BuildProbabilityType::Reversed)) SetBit(Train::From(v)->flags, VRF_REVERSE_DIRECTION);
|
||||
v->UpdatePosition();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue