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:
@@ -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