From 315abd7d73552592cfcd31d8295bb6d04f2bd22a Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Tue, 27 Aug 2024 16:00:41 -0500 Subject: [PATCH] match other cases' syntax --- src/game/boe.actions.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index fba057f0..24bf7adc 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -2133,9 +2133,8 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){ break; case 'I': - if(univ.debug_mode) { - debug_give_item(); - } + if(!univ.debug_mode) break; + debug_give_item(); break; case 'Q':