fix queue banners not invalidating properly

This commit is contained in:
IntelOrca committed 2015-03-22 17:43:44 +00:00
1 parent 7d383a586e
commit 74fd9dc5a2
2 files changed
+1 -3

No files matched your search

-2
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
+1 -1
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);