From d14acb8ff9ab4f77a4b22ff28e220564898c14e6 Mon Sep 17 00:00:00 2001 From: Shadow15510 Date: Sat, 5 Jun 2021 20:18:32 +0200 Subject: [PATCH] Patch merge conflit on master --- src/core.c | 12 ++---------- src/mutation_engine.c | 25 +------------------------ src/save.c | 6 ------ 3 files changed, 3 insertions(+), 40 deletions(-) diff --git a/src/core.c b/src/core.c index 53d0925..59a2da2 100644 --- a/src/core.c +++ b/src/core.c @@ -48,11 +48,6 @@ int next_frame(struct game *current_game) // Infect the plane if (current_game->grid.data[current_game->planes[i]->x + current_game->planes[i]->y * current_game->grid.width] == 1 && current_game->mutations_selected[2] == 4) current_game->planes[i]->is_infected = 1; -<<<<<<< HEAD -======= - - ->>>>>>> 495d11fabf82a4924f31a1eaf183f97b3cf4fd02 } } @@ -70,13 +65,10 @@ int next_frame(struct game *current_game) // Update the game current_game->dna = current_game->dna + 1 + floor(current_game->severity / 10); if (current_game->dna > 30) current_game->dna = 30; -<<<<<<< HEAD + current_game->research += current_game->priority; if (current_game->research > current_game->limit) current_game->research = current_game->limit; - -======= - if (current_game->research < current_game->limit) current_game->research += current_game->priority; ->>>>>>> 495d11fabf82a4924f31a1eaf183f97b3cf4fd02 + epidemic_simulation(current_game); // Check the end of the game diff --git a/src/mutation_engine.c b/src/mutation_engine.c index c8d46b4..7e602fd 100644 --- a/src/mutation_engine.c +++ b/src/mutation_engine.c @@ -80,7 +80,6 @@ void mutation_select(struct game *current_game, const int mutation_menu) end = mutation_buy(current_game, c, mutation_menu, table); } -<<<<<<< HEAD if (key == KEY_LEFT) c.x = c.x - 1; if (key == KEY_RIGHT) c.x = (c.x + 1) % 8; if (key == KEY_UP) c.y = c.y - 1; @@ -88,13 +87,8 @@ void mutation_select(struct game *current_game, const int mutation_menu) if (c.x < 0) c.x = 7; if (c.y < 0) c.y = 3; -======= - if (key == KEY_LEFT && c.x > 0) c.x = (c.x - 1) % 8; - if (key == KEY_RIGHT && c.x < 7) c.x = (c.x + 1) % 8; - if (key == KEY_UP && c.y > 0) c.y = (c.y - 1) % 4; - if (key == KEY_DOWN && c.y < 3) c.y = (c.y + 1) % 4; ->>>>>>> 495d11fabf82a4924f31a1eaf183f97b3cf4fd02 } + if (t >= 0) timer_stop(t); } @@ -140,21 +134,8 @@ int mutation_buy(struct game *current_game, const struct cursor c, const int mut // Update update_disease(current_game); -<<<<<<< HEAD -<<<<<<< HEAD - current_game->priority += ceil((mutation_data->severity + mutation_data->lethality)/8); -<<<<<<< HEAD -======= - current_game->priority += ceil((mutation_data->severity + mutation_data->lethality)/10); ->>>>>>> 495d11fabf82a4924f31a1eaf183f97b3cf4fd02 - const char *msg[5] = {"mutation", "achetee", "", "", ""}; - message(msg); -======= -======= current_game->priority += ceil((mutation_data->severity + mutation_data->lethality) / 10); ->>>>>>> dev message("MUTATION ACHETEE"); ->>>>>>> dev } else message("ACHAT IMPOSSIBLE"); } @@ -188,11 +169,7 @@ void update_disease(struct game *current_game) // research parameter current_game->limit = RESEARCH_LIMIT + symptom->changement + ability->changement + transmission->changement; -<<<<<<< HEAD if (current_game->research > current_game->limit) current_game->research = current_game->limit; - -======= ->>>>>>> 495d11fabf82a4924f31a1eaf183f97b3cf4fd02 } diff --git a/src/save.c b/src/save.c index 34b314c..b8c199b 100644 --- a/src/save.c +++ b/src/save.c @@ -4,12 +4,6 @@ #include "save.h" -/* BUG - Démarrer le jeu, quitter, revenir sur le jeu, quitter -> la calto plante - => Premier démarrage du jeu : ok (valeur par défaut bien initialisée) - => Quand on revient sur le jeu, pas de problème : tout est sauvé correctement (sauvé correctement et chargé correctement) - => On quitte : bug -*/ // Name of the savefile static const uint16_t *filename = u"\\\\fls0\\Plague.sav";