Make it possible to quit in the boss fight for faster dev.
This commit is contained in:
parent
61a40ae7cd
commit
a0861a8f57
2 changed files with 16 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue