From f1ea718ded46f4f940883e93bc7c63a4612af8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= Date: Thu, 14 Jan 2021 11:13:32 +0200 Subject: [PATCH] Fix #13832: Game action position is invalid on opening/closing a ride --- distribution/changelog.txt | 1 + src/openrct2/actions/RideSetStatusAction.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a7aa44c1fe..240757135c 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -34,6 +34,7 @@ - Fix: [#13489] Mechanics continue heading to inspect broken down rides. - Fix: [#13510] [Plugin] list view scroll resets when items is set. - Fix: [#13574] Crash when a JSON object does not set `originalId`. +- Fix: [#13832] Players last action position is invalid on opening/closing a ride in multiplayer. - Improved: [#12917] Changed peep movement so that they stay more spread out over the full width of single tile paths. - Improved: [#13386] A GUI error message is now displayed if the language files are missing. - Improved: [#13587] Allow up to 128 ride objects to be selected in track designer. diff --git a/src/openrct2/actions/RideSetStatusAction.cpp b/src/openrct2/actions/RideSetStatusAction.cpp index 4fd050d3fe..49112eea39 100644 --- a/src/openrct2/actions/RideSetStatusAction.cpp +++ b/src/openrct2/actions/RideSetStatusAction.cpp @@ -135,7 +135,7 @@ GameActions::Result::Ptr RideSetStatusAction::Execute() const if (!ride->overall_view.isNull()) { auto location = ride->overall_view.ToTileCentre(); - res->Position = { location, tile_element_height(res->Position) }; + res->Position = { location, tile_element_height(location) }; } switch (_status)