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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user