diff --git a/Plague.g1a b/Plague.g1a index 70aace2..313e517 100644 Binary files a/Plague.g1a and b/Plague.g1a differ diff --git a/src/main.c b/src/main.c index 71e2a5d..463a69d 100644 --- a/src/main.c +++ b/src/main.c @@ -157,7 +157,7 @@ int main_loop(struct game *current_game) // Compute the motion of planes, DNA points and infectious model to_save = next_frame(current_game, &dna_animation); - if (!to_save) end = 1; + if (!to_save) return 0; // Get inputs from the keyboard and manage it background = get_inputs(background, &mutation_menu, ¤t_game->boost); @@ -172,6 +172,6 @@ int main_loop(struct game *current_game) } if (t >= 0) timer_stop(t); - return to_save; + return 1; }