1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Fix in game console "get location" command (#23598)

This commit is contained in:
mrmbernardi
2025-01-12 14:06:22 +11:00
committed by GitHub
parent e791ed6295
commit d8290a696f
2 changed files with 3 additions and 2 deletions

View File

@@ -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);