1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Remove view width and height from Viewport struct

This commit is contained in:
Michael Bernardi
2024-09-20 02:03:35 +10:00
parent f64ef9488d
commit 8cc53324b6
18 changed files with 64 additions and 97 deletions

View File

@@ -694,7 +694,7 @@ static int32_t ConsoleCommandGet(InteractiveConsole& console, const arguments_t&
{
Viewport* viewport = WindowGetViewport(w);
auto info = GetMapCoordinatesFromPos(
{ viewport->view_width / 2, viewport->view_height / 2 }, EnumsToFlags(ViewportInteractionItem::Terrain));
{ viewport->ViewWidth() / 2, viewport->ViewHeight() / 2 }, EnumsToFlags(ViewportInteractionItem::Terrain));
auto tileMapCoord = TileCoordsXY(info.Loc);
console.WriteFormatLine("location %d %d", tileMapCoord.x, tileMapCoord.y);