diff options
author | Olivier Gayot <og@satcom1.com> | 2016-09-04 17:20:59 +0200 |
---|---|---|
committer | Olivier Gayot <og@satcom1.com> | 2016-09-04 17:20:59 +0200 |
commit | c6a8032e93deddb70e268b2ef6521410cbb8afac (patch) | |
tree | c44d9593126da6688f6a41ac9141037b8438b373 /map.c | |
parent | bf00587e9f9b4eda766b136754ef53b71f85701e (diff) |
refactored battle function
Signed-off-by: Olivier Gayot <og@satcom1.com>
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |