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

Close #12245: Use coords objects for SetLocation (Window_internal.h)

This commit is contained in:
frutiemax
2020-07-16 17:01:42 -04:00
committed by GitHub
parent 2812be8c9a
commit f49149222e
5 changed files with 8 additions and 8 deletions

View File

@@ -909,7 +909,7 @@ static int32_t cc_set(InteractiveConsole& console, const arguments_t& argv)
{
auto location = TileCoordsXYZ(int_val[0], int_val[1], 0).ToCoordsXYZ().ToTileCentre();
location.z = tile_element_height(location);
w->SetLocation(location.x, location.y, location.z);
w->SetLocation(location);
viewport_update_position(w);
console.Execute("get location");
}