edit game_restart

This commit is contained in:
thibault perrier committed 2022-01-06 17:35:52 +01:00
1 parent 7cbf8776cc
commit 6d2378395c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -271,5 +271,5 @@ void game_restart(game g) {
} }
game_update_flags(g); game_update_flags(g);
history_delete_entire_history(g->hist); history_delete_entire_history(g->hist);
g->hist = NULL; g->hist = history_insert_first(history_create_empty(),F_ERROR,0,0);
} }
+1 -1
View File
@@ -78,7 +78,7 @@ int main(int argc, char* argv[]) {
printf("Entrez une commande (h pour afficher l'aide): "); printf("Entrez une commande (h pour afficher l'aide): ");
if (scanf(" %c", &c)) { if (scanf(" %c", &c)) {
if (c == 'h') { if (c == 'h') {
printhelp(); printhelp();
} else if (c == 'r') { } else if (c == 'r') {
game_restart(g); game_restart(g);
printf("Partie réinitialisé avec succes !\n"); printf("Partie réinitialisé avec succes !\n");