mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Port remaining wall stuff to struct methods
This commit is contained in:
@@ -492,7 +492,7 @@ static bool map_animation_invalidate_wall_door(int32_t x, int32_t y, int32_t bas
|
||||
if (tileElement->GetType() != TILE_ELEMENT_TYPE_WALL)
|
||||
continue;
|
||||
|
||||
sceneryEntry = get_wall_entry(tileElement->properties.wall.type);
|
||||
sceneryEntry = tileElement->AsWall()->GetEntry();
|
||||
if (!(sceneryEntry->wall.flags & WALL_SCENERY_IS_DOOR))
|
||||
continue;
|
||||
|
||||
@@ -552,7 +552,7 @@ static bool map_animation_invalidate_wall(int32_t x, int32_t y, int32_t baseZ)
|
||||
if (tileElement->GetType() != TILE_ELEMENT_TYPE_WALL)
|
||||
continue;
|
||||
|
||||
sceneryEntry = get_wall_entry(tileElement->properties.wall.type);
|
||||
sceneryEntry = tileElement->AsWall()->GetEntry();
|
||||
|
||||
if (!(sceneryEntry->wall.flags2 & WALL_SCENERY_2_ANIMATED) && sceneryEntry->wall.scrolling_mode == 255)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user