Changeset - r28214:2eb03e847639
[Not reviewed]
master
0 1 0
Peter Nelson - 12 months ago 2023-11-30 23:12:39
peter1138@openttd.org
Fix ddd609c: Reverse build probability callback was not called for articulated parts. (#11526)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/articulated_vehicles.cpp
Show inline comments
 
@@ -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();
 
	}
 
}
0 comments (0 inline, 0 general)