diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 13:43:25 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 13:43:25 +0100 |
commit | 9bbff3216b9f99d86f3757dbad70c9d91ef8d700 (patch) | |
tree | a97b99b0dacdff2f72d0035f78276c190329df4d /blits.c | |
parent | b91ac429108096a3de75b9b81ca2c637b27524ba (diff) |
fixed some compilation warnings
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
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; |