1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Port entrance type lookup

This commit is contained in:
Michael Steenbeek
2018-09-26 12:13:44 +02:00
committed by Gymnasiast
parent 757d705e13
commit cc7f8e612d
21 changed files with 62 additions and 55 deletions

View File

@@ -114,7 +114,7 @@ static bool map_animation_invalidate_ride_entrance(int32_t x, int32_t y, int32_t
continue;
if (tileElement->GetType() != TILE_ELEMENT_TYPE_ENTRANCE)
continue;
if (tileElement->properties.entrance.type != ENTRANCE_TYPE_RIDE_ENTRANCE)
if (tileElement->AsEntrance()->GetEntranceType() != ENTRANCE_TYPE_RIDE_ENTRANCE)
continue;
ride = get_ride(tileElement->properties.entrance.ride_index);
@@ -246,7 +246,7 @@ static bool map_animation_invalidate_park_entrance(int32_t x, int32_t y, int32_t
continue;
if (tileElement->GetType() != TILE_ELEMENT_TYPE_ENTRANCE)
continue;
if (tileElement->properties.entrance.type != ENTRANCE_TYPE_PARK_ENTRANCE)
if (tileElement->AsEntrance()->GetEntranceType() != ENTRANCE_TYPE_PARK_ENTRANCE)
continue;
if (tileElement->properties.entrance.index & 0x0F)
continue;