mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Remove residual access to additions field
It looks like neighbour_list_push() never actually reads the contents of the station index, it just compares it to other tiles. Therefore, this should work.
This commit is contained in:
@@ -1441,7 +1441,7 @@ static void loc_6A6D7E(
|
||||
{
|
||||
neighbour_list_push(
|
||||
neighbourList, 4, direction, tileElement->properties.path.ride_index,
|
||||
tileElement->properties.path.additions);
|
||||
tileElement->AsPath()->GetStationIndex());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1451,7 +1451,7 @@ static void loc_6A6D7E(
|
||||
{
|
||||
neighbour_list_push(
|
||||
neighbourList, 3, direction, tileElement->properties.path.ride_index,
|
||||
tileElement->properties.path.additions);
|
||||
tileElement->AsPath()->GetStationIndex());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,8 +188,8 @@ assert_struct_size(SurfaceElement, 8);
|
||||
struct PathElement : TileElementBase
|
||||
{
|
||||
private:
|
||||
uint8_t entryIndex; // 4 0xF0 Path type, 0x08 Ride sign, 0x04 Set when path is diagonal, 0x03 Rotation
|
||||
uint8_t additions; // 5
|
||||
uint8_t entryIndex; // 4, 0xF0 Path type, 0x08 Ride sign, 0x04 Set when path is sloped, 0x03 Rotation
|
||||
uint8_t additions; // 5, 0bGSSSAAAA: G = Ghost, S = station index, A = addition (0 means no addition)
|
||||
uint8_t edges; // 6
|
||||
union
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user