From c6a8032e93deddb70e268b2ef6521410cbb8afac Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 4 Sep 2016 17:20:59 +0200 Subject: refactored battle function Signed-off-by: Olivier Gayot --- map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'map.c') diff --git a/map.c b/map.c index 84ddefe..2af443a 100644 --- a/map.c +++ b/map.c @@ -6,6 +6,9 @@ #include "structures.h" #include "prototypes.h" +int battle(SURFACES *surfaces, POSITIONS *positions, + struct team_t *t1, struct team_t *t2); + void Fmap (SURFACES*surfaces, POSITIONS* positions, struct team_t *t1, struct team_t *t2) { @@ -41,7 +44,7 @@ void Fmap (SURFACES*surfaces, POSITIONS* positions, //une fois le jeu quitté ! Fdechargersurfaces_map(surfaces); #else - Fjouer(surfaces, positions, t1, t2); + battle(surfaces, positions, t1, t2); #endif } -- cgit v1.2.3