mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Removes unneeded variables from track block functions
This commit is contained in:
@@ -610,7 +610,6 @@ static void track_block_height_offset(rct_map_element *mapElement, uint8 offset)
|
|||||||
uint8 rotation = map_element_get_direction(mapElement);
|
uint8 rotation = map_element_get_direction(mapElement);
|
||||||
|
|
||||||
sint16 trackpieceZ = originZ;
|
sint16 trackpieceZ = originZ;
|
||||||
RCT2_GLOBAL(0x00F440E1, uint8) = sequence;
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
@@ -622,9 +621,6 @@ static void track_block_height_offset(rct_map_element *mapElement, uint8 offset)
|
|||||||
|
|
||||||
uint8 rideIndex = mapElement->properties.track.ride_index;
|
uint8 rideIndex = mapElement->properties.track.ride_index;
|
||||||
type = mapElement->properties.track.type;
|
type = mapElement->properties.track.type;
|
||||||
RCT2_GLOBAL(0x00F44139, uint8) = type;
|
|
||||||
RCT2_GLOBAL(0x00F44138, uint8) = rideIndex;
|
|
||||||
RCT2_GLOBAL(0x00F4414C, uint8) = mapElement->type;
|
|
||||||
|
|
||||||
rct_ride* ride = get_ride(rideIndex);
|
rct_ride* ride = get_ride(rideIndex);
|
||||||
const rct_preview_track* trackBlock = get_track_def_from_ride(ride, type);
|
const rct_preview_track* trackBlock = get_track_def_from_ride(ride, type);
|
||||||
@@ -681,8 +677,6 @@ static void track_block_height_offset(rct_map_element *mapElement, uint8 offset)
|
|||||||
z += trackBlock->z;
|
z += trackBlock->z;
|
||||||
|
|
||||||
map_invalidate_tile_full(x, y);
|
map_invalidate_tile_full(x, y);
|
||||||
RCT2_GLOBAL(0x00F441C4, sint16) = x;
|
|
||||||
RCT2_GLOBAL(0x00F441C6, sint16) = y;
|
|
||||||
|
|
||||||
trackpieceZ = z;
|
trackpieceZ = z;
|
||||||
|
|
||||||
@@ -738,7 +732,6 @@ static void track_block_set_lift(rct_map_element *mapElement, bool chain)
|
|||||||
uint8 rotation = map_element_get_direction(mapElement);
|
uint8 rotation = map_element_get_direction(mapElement);
|
||||||
|
|
||||||
sint16 trackpieceZ = originZ;
|
sint16 trackpieceZ = originZ;
|
||||||
RCT2_GLOBAL(0x00F440E1, uint8) = sequence;
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
@@ -750,9 +743,6 @@ static void track_block_set_lift(rct_map_element *mapElement, bool chain)
|
|||||||
|
|
||||||
uint8 rideIndex = mapElement->properties.track.ride_index;
|
uint8 rideIndex = mapElement->properties.track.ride_index;
|
||||||
type = mapElement->properties.track.type;
|
type = mapElement->properties.track.type;
|
||||||
RCT2_GLOBAL(0x00F44139, uint8) = type;
|
|
||||||
RCT2_GLOBAL(0x00F44138, uint8) = rideIndex;
|
|
||||||
RCT2_GLOBAL(0x00F4414C, uint8) = mapElement->type;
|
|
||||||
|
|
||||||
rct_ride* ride = get_ride(rideIndex);
|
rct_ride* ride = get_ride(rideIndex);
|
||||||
const rct_preview_track* trackBlock = get_track_def_from_ride(ride, type);
|
const rct_preview_track* trackBlock = get_track_def_from_ride(ride, type);
|
||||||
@@ -809,8 +799,6 @@ static void track_block_set_lift(rct_map_element *mapElement, bool chain)
|
|||||||
z += trackBlock->z;
|
z += trackBlock->z;
|
||||||
|
|
||||||
map_invalidate_tile_full(x, y);
|
map_invalidate_tile_full(x, y);
|
||||||
RCT2_GLOBAL(0x00F441C4, sint16) = x;
|
|
||||||
RCT2_GLOBAL(0x00F441C6, sint16) = y;
|
|
||||||
|
|
||||||
trackpieceZ = z;
|
trackpieceZ = z;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user