mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Move animation frame and rct1 wall functions to methods
This commit is contained in:
@@ -503,7 +503,7 @@ static bool map_animation_invalidate_wall_door(int32_t x, int32_t y, int32_t bas
|
||||
|
||||
bool invalidate = false;
|
||||
|
||||
uint8_t currentFrame = wall_get_animation_frame(tileElement);
|
||||
uint8_t currentFrame = tileElement->AsWall()->GetAnimationFrame();
|
||||
if (currentFrame != 0)
|
||||
{
|
||||
if (currentFrame == 15)
|
||||
@@ -523,7 +523,7 @@ static bool map_animation_invalidate_wall_door(int32_t x, int32_t y, int32_t bas
|
||||
}
|
||||
}
|
||||
}
|
||||
wall_set_animation_frame(tileElement, currentFrame);
|
||||
tileElement->AsWall()->SetAnimationFrame(currentFrame);
|
||||
if (invalidate)
|
||||
{
|
||||
int32_t z = tileElement->base_height * 8;
|
||||
|
||||
Reference in New Issue
Block a user