1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Change station start to CoordsXY

This commit is contained in:
Gymnasiast
2020-03-01 23:18:59 +01:00
parent 8351a0477d
commit 2eb967b30d
12 changed files with 89 additions and 124 deletions

View File

@@ -905,10 +905,9 @@ static int32_t cc_set(InteractiveConsole& console, const arguments_t& argv)
rct_window* w = window_get_main();
if (w != nullptr)
{
int32_t x = (int16_t)(int_val[0] * 32 + 16);
int32_t y = (int16_t)(int_val[1] * 32 + 16);
int32_t z = tile_element_height({ x, y });
w->SetLocation(x, y, z);
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);
viewport_update_position(w);
console.Execute("get location");
}