From adceeb1192fdd1d14e0f55219bbd1bcb14eacc05 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 12:46:36 +0100 Subject: use the objects assigned to the teams instead of a common array Signed-off-by: Olivier Gayot --- jouer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jouer.c') diff --git a/jouer.c b/jouer.c index 4514524..04e7188 100644 --- a/jouer.c +++ b/jouer.c @@ -105,7 +105,7 @@ int Fjouer (SURFACES *surfaces, POSITIONS *positions, struct team_t *ally, struc else // sinon si c'est le dernier ally->chr_cur = 0; // on reprend le 1er } - Fchangeractionselectionnee(surfaces,positions,selection,page,nbactions,ACTIONS,NULL); + Fchangeractionselectionnee(surfaces,positions,selection,page,nbactions,ACTIONS); SDL_WaitEvent(&event); switch(event.type) { @@ -126,7 +126,7 @@ int Fjouer (SURFACES *surfaces, POSITIONS *positions, struct team_t *ally, struc else selection=nbactions-1; page=selection/3; - Fchangeractionselectionnee(surfaces,positions,selection,page,nbactions,ACTIONS,NULL); + Fchangeractionselectionnee(surfaces,positions,selection,page,nbactions,ACTIONS); break; case SDLK_DOWN: case SDLK_j: @@ -135,7 +135,7 @@ int Fjouer (SURFACES *surfaces, POSITIONS *positions, struct team_t *ally, struc else selection=0; page=selection/3; - Fchangeractionselectionnee(surfaces,positions,selection,page,nbactions,ACTIONS,NULL); + Fchangeractionselectionnee(surfaces,positions,selection,page,nbactions,ACTIONS); break; case SDLK_RETURN: case SDLK_f: -- cgit v1.2.3