summaryrefslogtreecommitdiff
path: root/jouer.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 12:46:36 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 12:46:36 +0100
commitadceeb1192fdd1d14e0f55219bbd1bcb14eacc05 (patch)
tree459ef1cca58cd8975ded85bba7db639ae76a3528 /jouer.c
parent9a98118c3d9a062b33134e8354620be43ecf3786 (diff)
use the objects assigned to the teams instead of a common array
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'jouer.c')
-rw-r--r--jouer.c6
1 files changed, 3 insertions, 3 deletions
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: