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