Merge branch 'dev'

Version 1.2.1 : last commit
This commit is contained in:
Shadow15510 2021-06-04 16:46:16 +02:00
commit f8d936c904
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -1,4 +1,5 @@
#include <gint/std/stdlib.h>
#include <math.h>
#include "epidemic_engine.h"
@ -40,7 +41,7 @@ void epidemic_simulation(struct game *current_game)
uint8_t *current_grid = calloc(current_game->grid.width * current_game->grid.height, sizeof(uint8_t));
init_tab(current_game->grid.width * current_game->grid.height, current_grid, current_game->grid.data);
int healed_rate = 100 * (current_game->research / current_game->limit);
int healed_rate = ceil(100 * (current_game->research / current_game->limit));
// Make the epidemic grid evolove
for (int i = 0; i < current_game->grid.width; i ++)