mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
fix queue banners not invalidating properly
This commit is contained in:
@@ -285,7 +285,5 @@ void map_element_iterator_restart_for_tile(map_element_iterator *it);
|
||||
|
||||
void map_remove_intersecting_walls(int x, int y, int z0, int z1, int direction);
|
||||
void map_update_tiles();
|
||||
void map_update_grass_length(int x, int y, rct_map_element *mapElement);
|
||||
void map_set_grass_length(int x, int y, rct_map_element *mapElement, int length);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -149,7 +149,7 @@ static bool map_animation_invalidate_queue_banner(int x, int y, int baseZ)
|
||||
if (!(mapElement->properties.path.type & PATH_FLAG_QUEUE_BANNER))
|
||||
continue;
|
||||
|
||||
int direction = ((mapElement->type >> 6) & 3) + RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint8);
|
||||
int direction = ((mapElement->type >> 6) + RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint8)) & 3;
|
||||
if (direction == MAP_ELEMENT_DIRECTION_NORTH || direction == MAP_ELEMENT_DIRECTION_EAST) {
|
||||
baseZ = mapElement->base_height * 8;
|
||||
map_invalidate_tile(x, y, baseZ + 16, baseZ + 30);
|
||||
|
||||
Reference in New Issue
Block a user