1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

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