corrected last segfaults, added 150ms before SDL_WaitEvent calls for debounce

This commit is contained in:
Vincent-FK 2021-06-10 01:04:26 +02:00
parent fd95706ffa
commit 9670219b73

View File

@ -452,7 +452,7 @@ int main_game(int nb_joueur, int niveau, int mode, int kill_bomb, int game_over)
//##################################################### Main #################################################################### //##################################################### Main ####################################################################
//Fonction principale du jeu //Fonction principale du jeu
int main(int argc, char *argv[]) { int main_menu_and_game() {
SDL_Surface *menu = NULL; SDL_Surface *menu = NULL;
SDL_Event event; SDL_Event event;
SDL_Rect positionMenu; SDL_Rect positionMenu;
@ -1025,3 +1025,6 @@ int main(int argc, char *argv[]) {
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
int main(int argc, char *argv[]) {
return main_menu_and_game();
}