bug fix
This commit is contained in:
@@ -6,7 +6,6 @@ endif()
|
|||||||
|
|
||||||
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
|
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||||
add_link_options(-fsanitize=address)
|
add_link_options(-fsanitize=address)
|
||||||
add_definitions(DEBUG)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmaybe-uninitialized -Wno-unused-variable")
|
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){
|
void game_handleSpaceKeyInput(void){
|
||||||
#ifdef DEBUG
|
|
||||||
if(isSpaceKeypressed == true && !crashed)return;
|
if(isSpaceKeypressed == true && !crashed)return;
|
||||||
#endif
|
|
||||||
if(crashed){
|
if(crashed){
|
||||||
crashed = false;
|
crashed = false;
|
||||||
personPositionX = startPersonPositionX;
|
personPositionX = startPersonPositionX;
|
||||||
|
|||||||
Reference in New Issue
Block a user