Fix plugin ‘Car.travelBy()’ moving other cars as well (#17369)

This commit is contained in:
Basssiiie 2022-06-26 21:28:54 +02:00 committed by GitHub
parent 69ff925b1e
commit 4d8dd516bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -44,6 +44,7 @@
- Fix: [#17335] [Plugin] Documentation has an incorrect type for PixelData data attribute.
- Fix: [#17337] Air Powered Vertical Coaster trains not imported properly when loading RCT1 parks.
- Fix: [#17346] Surface height markers are concealed by sprites of same surface.
- Fix: [#17369] [Plugin] Car.travelBy() moves other cars as well.
- Fix: [#17381] Air Powered Vertical Coaster stat penalty is wrong.
- Fix: [#17433] Wrong T-shirt colours for guests on a Twist ride.

View file

@ -8891,7 +8891,7 @@ int32_t Vehicle::UpdateTrackMotion(int32_t* outStation)
UpdateVelocity();
Vehicle* vehicle = this;
if (_vehicleVelocityF64E08 < 0)
if (_vehicleVelocityF64E08 < 0 && !vehicle->HasUpdateFlag(VEHICLE_UPDATE_FLAG_SINGLE_CAR_POSITION))
{
vehicle = vehicle->TrainTail();
}