summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorOlivier Gayot <og@satcom1.com>2016-09-04 17:20:59 +0200
committerOlivier Gayot <og@satcom1.com>2016-09-04 17:20:59 +0200
commitc6a8032e93deddb70e268b2ef6521410cbb8afac (patch)
treec44d9593126da6688f6a41ac9141037b8438b373 /map.c
parentbf00587e9f9b4eda766b136754ef53b71f85701e (diff)
refactored battle function
Signed-off-by: Olivier Gayot <og@satcom1.com>
Diffstat (limited to 'map.c')
-rw-r--r--map.c5
1 files changed, 4 insertions, 1 deletions
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
}