1
0
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:
IntelOrca
2015-03-22 17:43:44 +00:00
parent 7d383a586e
commit 74fd9dc5a2
2 changed files with 1 additions and 3 deletions

View File

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

View File

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