forked from rosebudai/OpenRCT2-Web
Fix in game console "get location" command (#23598)
This commit is contained in:
1 parent
e791ed6295
commit
d8290a696f
2 files changed
+3
-2
No files matched your search
@@ -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