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

This commit is contained in:
frutiemax authored and GitHub committed 2020-07-16 23:01:42 +02:00
1 parent 2812be8c9a
commit f49149222e
5 files changed
+8 -8

No files matched your search

@@ -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");
}