Handle mouse inputs while flag modal open

main
Cameron Murphy Reikes 2 years ago
parent fe2c9d07c5
commit dcdeaf4cc1

File diff suppressed because it is too large Load Diff

@ -561,6 +561,7 @@ ui(bool draw, float dt, float width, float height)
.width = center_panel_width, .width = center_panel_width,
.height = center_panel_height, .height = center_panel_height,
}; };
if (choosing_flags && mouse_pressed && !has_point(panel_rect, mouse_pos)) if (choosing_flags && mouse_pressed && !has_point(panel_rect, mouse_pos))
{ {
mouse_pressed = false; mouse_pressed = false;
@ -635,6 +636,8 @@ ui(bool draw, float dt, float width, float height)
} }
} }
} }
if (choosing_flags) mouse_pressed = false; // no more inputs beyond flags when the flag choice modal is open
} }
#undef FLAG_ITER #undef FLAG_ITER

Loading…
Cancel
Save