diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 12:46:36 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 12:46:36 +0100 |
commit | adceeb1192fdd1d14e0f55219bbd1bcb14eacc05 (patch) | |
tree | 459ef1cca58cd8975ded85bba7db639ae76a3528 /jouer.c | |
parent | 9a98118c3d9a062b33134e8354620be43ecf3786 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |