From 4d8dd516bf530ef1d7e5769344dbf2869aca4d24 Mon Sep 17 00:00:00 2001 From: Basssiiie Date: Sun, 26 Jun 2022 21:28:54 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20plugin=20=E2=80=98Car.travelBy()=E2=80=99?= =?UTF-8?q?=20moving=20other=20cars=20as=20well=20(#17369)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- distribution/changelog.txt | 1 + src/openrct2/ride/Vehicle.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 08d1c9c9ac..cb4cfe5b38 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -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. diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index cdde86a4c0..fb4e3b8269 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -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(); }