mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
integrate variable: gWindowMapFlashingFlags
This commit is contained in:
@@ -658,7 +658,7 @@ static void window_guest_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi,
|
||||
if (_window_guest_list_selected_filter != -1) {
|
||||
if (window_guest_list_is_peep_in_filter(peep))
|
||||
continue;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_MAP_FLASHING_FLAGS, uint16) |= (1 << 0);
|
||||
gWindowMapFlashingFlags |= (1 << 0);
|
||||
peep->flags |= SPRITE_FLAGS_PEEP_FLASHING;
|
||||
}
|
||||
if (_window_guest_list_tracking_only && !(peep->peep_flags & PEEP_FLAGS_TRACKING))
|
||||
|
||||
@@ -1027,17 +1027,17 @@ static void window_map_paint_peep_overlay(rct_drawpixelinfo *dpi)
|
||||
|
||||
if ((peep->flags & SPRITE_FLAGS_PEEP_FLASHING) != 0) {
|
||||
if (peep->type == PEEP_TYPE_STAFF) {
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_MAP_FLASHING_FLAGS, uint16) & (1 << 3)) != 0) {
|
||||
if ((gWindowMapFlashingFlags & (1 << 3)) != 0) {
|
||||
colour = 0x8A;
|
||||
left--;
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_MAP_FLASHING_FLAGS, uint16) & (1 << 15)) == 0)
|
||||
if ((gWindowMapFlashingFlags & (1 << 15)) == 0)
|
||||
colour = 0xA;
|
||||
}
|
||||
} else {
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_MAP_FLASHING_FLAGS, uint16) & (1 << 1)) != 0) {
|
||||
if ((gWindowMapFlashingFlags & (1 << 1)) != 0) {
|
||||
colour = 0xAC;
|
||||
left--;
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_MAP_FLASHING_FLAGS, uint16) & (1 << 15)) == 0)
|
||||
if ((gWindowMapFlashingFlags & (1 << 15)) == 0)
|
||||
colour = 0x15;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ void window_staff_list_update(rct_window *w)
|
||||
w->list_information_type = 0;
|
||||
} else {
|
||||
widget_invalidate(w, WIDX_STAFF_LIST_HANDYMEN_TAB + RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_STAFF_LIST_SELECTED_TAB, uint8));
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_WINDOW_MAP_FLASHING_FLAGS, uint16) |= (1 << 2);
|
||||
gWindowMapFlashingFlags |= (1 << 2);
|
||||
FOR_ALL_STAFF(spriteIndex, peep) {
|
||||
peep->flags &= ~(SPRITE_FLAGS_PEEP_FLASHING);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user