mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unused variables from function call
This commit is contained in:
parent
7df9344d09
commit
f10e4dc6b9
|
@ -1192,9 +1192,7 @@ static void window_map_set_land_rights_tool_update(int32_t x, int32_t y)
|
|||
static void place_park_entrance_get_map_position(
|
||||
int32_t x, int32_t y, int16_t* mapX, int16_t* mapY, int16_t* mapZ, int32_t* direction)
|
||||
{
|
||||
TileElement* tileElement;
|
||||
|
||||
sub_68A15E(x, y, mapX, mapY, direction, &tileElement);
|
||||
sub_68A15E(x, y, mapX, mapY, nullptr, nullptr);
|
||||
if (*mapX == LOCATION_NULL)
|
||||
return;
|
||||
|
||||
|
|
|
@ -2109,14 +2109,14 @@ static void window_ride_construction_update(rct_window* w)
|
|||
static bool ride_get_place_position_from_screen_position(int32_t screenX, int32_t screenY, int32_t* outX, int32_t* outY)
|
||||
{
|
||||
int16_t mapX, mapY, mapZ;
|
||||
int32_t interactionType, direction;
|
||||
TileElement* tileElement;
|
||||
rct_viewport* viewport;
|
||||
int32_t interactionType;
|
||||
rct_viewport* viewport = nullptr;
|
||||
|
||||
if (!_trackPlaceCtrlState)
|
||||
{
|
||||
if (gInputPlaceObjectModifier & PLACE_OBJECT_MODIFIER_COPY_Z)
|
||||
{
|
||||
TileElement* tileElement;
|
||||
get_map_coordinates_from_pos(screenX, screenY, 0xFCCA, &mapX, &mapY, &interactionType, &tileElement, &viewport);
|
||||
if (interactionType != 0)
|
||||
{
|
||||
|
@ -2173,7 +2173,7 @@ static bool ride_get_place_position_from_screen_position(int32_t screenX, int32_
|
|||
|
||||
if (!_trackPlaceCtrlState)
|
||||
{
|
||||
sub_68A15E(screenX, screenY, &mapX, &mapY, &direction, &tileElement);
|
||||
sub_68A15E(screenX, screenY, &mapX, &mapY, nullptr, nullptr);
|
||||
if (mapX == LOCATION_NULL)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue