diff --git a/src/main.rs b/src/main.rs index dc4a0e1..9a13100 100644 --- a/src/main.rs +++ b/src/main.rs @@ -140,16 +140,16 @@ fn main() { .create_statistics(&game_core, draw_handle.get_time()); game_core.progress.update(&new_progress); - // For now, just quit - // This also throws a SEGFAULT.. yay for unsafe code.. - unsafe { - raylib::ffi::CloseWindow(); - } + // Break the render loop + break; } game_core.switch_state(new_state, Some(&draw_handle)); } + // Feed the audio engine + // audio_system.update(); + // Feed the profiler // This only runs in the dev profile. #[cfg(debug_assertions)]