From e623afc8033e7bc7dc0eae09c5bfae3683bc47e2 Mon Sep 17 00:00:00 2001 From: Jakub Arnold Date: Thu, 1 Feb 2024 23:26:55 +0100 Subject: [PATCH] Remove implicit pause system --- CHANGELOG.md | 2 ++ comfy/src/update_stages.rs | 15 --------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b15953e..6256ed5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ flipping. Note that this also fixes a long standing bug when in some cases sprites would be blitted flipped upside down. - Fix linear vs sRGB tinting in blood canvas, see [this commit](https://github.com/darthdeus/comfy/commit/80a0ee8e81d036aadf3da56c2a6ecb3750306dff) for more details. +- Remove implicitly enabled pause system that would toggle `is_paused` on `EngineContext` when + Esc is pressed. This was never really intended and was an oversight. # v0.3.0 diff --git a/comfy/src/update_stages.rs b/comfy/src/update_stages.rs index 6879081..ecc0a3c 100644 --- a/comfy/src/update_stages.rs +++ b/comfy/src/update_stages.rs @@ -481,21 +481,6 @@ fn update_animated_sprites(c: &mut EngineContext) { } fn pause_system(c: &mut EngineContext) { - // TODO: configurable pause - if is_key_pressed(KeyCode::Escape) { - if *c.is_paused.borrow() && *c.show_pause_menu { - info!("Resuming"); - *c.is_paused.borrow_mut() = false; - *c.show_pause_menu = false; - } else if !*c.is_paused.borrow() && !*c.show_pause_menu { - info!("Pausing"); - *c.is_paused.borrow_mut() = true; - *c.show_pause_menu = true; - } else { - info!("Nothing"); - } - } - if !*c.is_paused.borrow() && !c.flags.borrow().contains(PAUSE_PHYSICS) { cooldowns().tick(c.delta); notifications().tick(c.delta);