Make it possible to quit in the boss fight for faster dev.

This commit is contained in:
Zed A. Shaw 2025-09-29 14:04:54 -04:00
parent 61a40ae7cd
commit a0861a8f57
2 changed files with 16 additions and 2 deletions

View file

@ -213,7 +213,10 @@ namespace gui {
dbc::check($boss_fight != nullptr, "$boss_fight not initialized");
$boss_fight->mouse_pos = mouse_position();
if($boss_fight->event(ev, data)) {
if(ev == gui::Event::QUIT) {
// just epsilon straight to the exit
IDLE(ev, data);
} if($boss_fight->event(ev, data)) {
sound::play("ambient");
next_level(false);
state(State::IDLE);