mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix in game console "get location" command (#23598)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user