fix no reload when change mode

This commit is contained in:
_N3m0 2024-03-15 13:31:16 +01:00
parent 914d59f13f
commit 63328b0b41
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -174,7 +174,6 @@ void setup_game(void)
void fill_game(int click_x, int click_y)
{
setup_game();
for (int i=0; i<nb_bomb; i++) {
int x = rand() % game_size.x;
int y = rand() % game_size.y;
@ -234,6 +233,7 @@ int collision(Vec2i coord, Texture text, int x, int y)
void reload_game(void)
{
setup_game();
game_state = PLAYING;
memset(game, 0, game_cap);
memset(discover, 0, game_cap);