From 9f0a8a26925281ae9590303730205b6e60ab50e6 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 22 Jan 2023 17:39:29 +0100 Subject: [PATCH] bug fix --- CMakeLists.txt | 1 - src/game.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f94dce4..52be6ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,6 @@ endif() if(CMAKE_BUILD_TYPE MATCHES DEBUG) add_link_options(-fsanitize=address) - add_definitions(DEBUG) endif() set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmaybe-uninitialized -Wno-unused-variable") diff --git a/src/game.c b/src/game.c index a0d6061..516f290 100644 --- a/src/game.c +++ b/src/game.c @@ -396,9 +396,7 @@ void game_handleFKeyInput(void) { } void game_handleSpaceKeyInput(void){ - #ifdef DEBUG if(isSpaceKeypressed == true && !crashed)return; - #endif if(crashed){ crashed = false; personPositionX = startPersonPositionX;