From b1ff21aec4cccc8a08a3a9dc590e7e45824735d8 Mon Sep 17 00:00:00 2001 From: yuni Date: Tue, 9 Jul 2024 02:19:44 +0200 Subject: [PATCH] bevy14: upgrade AppExit enumerator --- src/menu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu.rs b/src/menu.rs index 203c0ad..26fe567 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -517,7 +517,7 @@ pub fn handle_input( keyboard_input: Res>, mut settings: ResMut, mut menustate: ResMut, - mut app_exit_events: ResMut>, + mut app_exit_events: ResMut>, mut ew_game: EventWriter, mut ew_playerdies: EventWriter, mut ew_sfx: EventWriter, @@ -601,7 +601,7 @@ pub fn handle_input( ew_playerdies.send(game::PlayerDiesEvent(actor::DamageType::Depressurization)); } MenuAction::Quit => { - app_exit_events.send(bevy::app::AppExit); + app_exit_events.send(AppExit::Success); } }; }