bug fix
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user