1
0
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:
Michael Steenbeek
2018-09-17 14:48:27 +02:00
parent dcabdeb805
commit 345e03d41b
7 changed files with 32 additions and 31 deletions

View File

@@ -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;