diff --git a/distribution/changelog.txt b/distribution/changelog.txt index bf3503ffd9..525557976e 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Improved: [#23328] The costume list in the staff window is now ordered alphabetically. - Improved: [#23540] The file browser now optionally shows a file size column. - Change: [#23328] All RCT2 entertainer costumes are now available in legacy parks. +- Fix: [#1479] Incorrect values provided by the in game console “get location” command. - Fix: [#21794] Lay-down coaster cars reverse on first frames of downwards corkscrew. - Fix: [#23508] Simultaneous virtual floors shown for ride and footpath. - Fix: [#23581] [Plugin] Food/drink items given to guests have no consumption duration set. diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index 148cb79e98..b732633506 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -691,8 +691,8 @@ static void ConsoleCommandGet(InteractiveConsole& console, const arguments_t& ar if (w != nullptr) { Viewport* viewport = WindowGetViewport(w); - auto info = GetMapCoordinatesFromPos( - { viewport->ViewWidth() / 2, viewport->ViewHeight() / 2 }, EnumsToFlags(ViewportInteractionItem::Terrain)); + auto info = GetMapCoordinatesFromPosWindow( + w, { viewport->width / 2, viewport->height / 2 }, EnumsToFlags(ViewportInteractionItem::Terrain)); auto tileMapCoord = TileCoordsXY(info.Loc); console.WriteFormatLine("location %d %d", tileMapCoord.x, tileMapCoord.y);