forked from rosebudai/OpenRCT2-Web
Move animation frame and rct1 wall functions to methods
This commit is contained in:
1 parent
dcabdeb805
commit
345e03d41b
7 files changed
+32
-31
No files matched your search
@@ -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