diff options
Diffstat (limited to 'blits.c')
-rw-r--r-- | blits.c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -11,6 +11,10 @@ void Fblitterennemis (SURFACES *surfaces, POSITIONS *positions,ENNEMIS ennemis[],int Vnbennemis) { int i; + + /* TODO understand if this is needed or not */ + (void) ennemis; + Finitialiserpositionsennemis (surfaces,positions,Vnbennemis); for (i = 0;i <= Vnbennemis;i++) SDL_BlitSurface (surfaces->Tennemi[i],NULL,surfaces->Pecran,&positions->Vpositionennemis[i]); @@ -70,6 +74,9 @@ void Fchangercurseurennemis (SURFACES *surfaces, POSITIONS *positions,int select void Fchangercurseurpersos (SURFACES *surfaces, POSITIONS *positions,int selection,PERSONNAGES persos[]) { + /* TODO undestand if this is needed or not */ + (void) persos; + SDL_BlitSurface (surfaces->Pfondjeu,&positions->Vpositioncurseurallies,surfaces->Pecran,&positions->Vpositioncurseurallies); SDL_Flip (surfaces->Pecran); SELECTION (0,ALLIE) @@ -213,6 +220,10 @@ void Fafficherdegats (SURFACES *surfaces, POSITIONS *positions, int degats,int c void Faffichersoins (SURFACES *surfaces, POSITIONS *positions, int degats,int clan, int cible,PERSONNAGES persos[]) { char chaine[10]; + + /* TODO understand if this is needed or not */ + (void) persos; + TTF_Font *police = NULL; SDL_Color fg = {80,255,80,0}; @@ -350,7 +361,7 @@ void Fblitterfond(SURFACES* surfaces) SDL_Flip(surfaces->Pecran); } -void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[],int Vtourallie,POSITIONS* positions) +void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[], int Vtourallie, POSITIONS* positions) { int x=0; int i; @@ -359,6 +370,12 @@ void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[],int Vtourallie,PO Uint32 pixel; Uint8 r,g,b,a; int ajout=30; + + /* TODO understand if these are needed or not */ + (void) persos; + (void) Vtourallie; + (void) positions; + for(i=0;i<3;i++) { tampon=0; |