Fix ddd609c: Reverse build probability callback was not called for articulated parts. (#11526)

This commit is contained in:
Peter Nelson 2023-11-30 23:12:39 +00:00 committed by GitHub
parent 4a5ab331e2
commit cc488ec6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
}