summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-07 21:43:18 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-07 23:29:49 +0100
commit45d54652a8005ccae2466a0e4757017c7b337e3b (patch)
tree5d13f930c82edeea16d490c39017973e0a85007c /map.c
parentb3295086c84b09353d5e89c6f7c743167b486a49 (diff)
use a team / character model instead of an array of personnages
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'map.c')
-rw-r--r--map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/map.c b/map.c
index d7b59d6..66a2165 100644
--- a/map.c
+++ b/map.c
@@ -1,12 +1,12 @@
-#include <SDL/SDL.h>
#include <stdio.h>
#include <stdlib.h>
+#include <SDL/SDL.h>
+#include <SDL/SDL_image.h>
#include "constantes.h"
#include "structures.h"
#include "prototypes.h"
-#include <SDL/SDL_image.h>
-void Fmap (SURFACES*surfaces, POSITIONS* positions,PERSONNAGES persos[],ENNEMIS ennemis[])
+void Fmap (SURFACES*surfaces, POSITIONS* positions, struct team_t *ally,ENNEMIS ennemis[])
{
int map[15][11];
int continuer=1;
@@ -24,7 +24,7 @@ void Fmap (SURFACES*surfaces, POSITIONS* positions,PERSONNAGES persos[],ENNEMIS
{
case SDLK_RETURN:
case SDLK_f:
- continuer=Fjouer(surfaces,positions,persos,ennemis);
+ continuer=Fjouer(surfaces,positions, ally,ennemis);
break;
case SDLK_ESCAPE:
case SDLK_a: