Merge pull request #9192 from Gymnasiast/fix/8507

Fix #8507: Incorrect change in vehicle rolling direction
This commit is contained in:
Duncan authored and GitHub committed 2019-05-02 21:32:22 +01:00
commit 1683ae736e
3 files changed
+8 -10

No files matched your search

+1
View File
@@ -21,6 +21,7 @@
- Fix: [#7700, #8079, #8969] Crash when unloading buggy custom rides.
- Fix: [#7878] Scroll shortcut keys ignore SHIFT/CTRL/ALT modifiers.
- Fix: [#8219] Faulty folder recreation in "save" folder.
- Fix: [#8507] Incorrect change in vehicle rolling direction.
- Fix: [#8537] Imported RCT1 rides/shops are all numbered 1.
- Fix: [#8649] Setting date does not work in multiplayer.
- Fix: [#8873] Potential crash when placing footpaths.
+1 -1
View File
@@ -31,7 +31,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "21"
#define NETWORK_STREAM_VERSION "22"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;
+6 -9
View File
@@ -9766,17 +9766,14 @@ int32_t vehicle_update_track_motion(rct_vehicle* vehicle, int32_t* outStation)
{
vehicle_update_track_motion_powered_ride_acceleration(vehicle, vehicleEntry, totalMass, &acceleration);
}
else
else if (acceleration <= 0 && acceleration >= -500)
{
if (acceleration <= 0)
// Probably moving slowly on a flat track piece, low rolling resistance and drag.
if (vehicle->velocity <= 0x8000 && vehicle->velocity >= 0)
{
if (acceleration >= -500)
{
if (vehicle->velocity <= 0x8000)
{
acceleration += 400;
}
}
// Vehicle is creeping forwards very slowly (less than ~2km/h), boost speed a bit.
acceleration += 400;
}
}