summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions.c1
-rw-r--r--blits.c19
-rw-r--r--jouer.c4
-rw-r--r--magies.c4
-rw-r--r--main.c5
-rw-r--r--menuchoixpersos.c2
-rw-r--r--menuoptions.c3
-rw-r--r--prototypes.h2
8 files changed, 36 insertions, 4 deletions
diff --git a/actions.c b/actions.c
index 6a7a4bb..1877664 100644
--- a/actions.c
+++ b/actions.c
@@ -152,7 +152,6 @@ void Fselectionnermagienoire(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES
SDL_Event event;
unsigned int continuer=1;
int nbactions=5;
- unsigned int element;
int page=0;
int selection=0;
diff --git a/blits.c b/blits.c
index eef8414..3a5a574 100644
--- a/blits.c
+++ b/blits.c
@@ -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;
diff --git a/jouer.c b/jouer.c
index 7c67993..c649874 100644
--- a/jouer.c
+++ b/jouer.c
@@ -145,6 +145,10 @@ void Fchoisirtypeennemis (PERSONNAGES persos[],SURFACES *surfaces,ENNEMIS ennemi
{
int moyenne=0;
int i;
+
+ /* TODO understand why this is needed */
+ (void) surfaces;
+
for (i=0;i<3;i++)
moyenne+=persos[i].nv;
moyenne/=3;
diff --git a/magies.c b/magies.c
index b978036..2de216e 100644
--- a/magies.c
+++ b/magies.c
@@ -250,6 +250,10 @@ int Fcalculersoins(PERSONNAGES persos[],int *Vtourallie,int *min,ENNEMIS ennemis
int max;
int taux;
+ /* TODO understand why these variables were passed to the function */
+ (void) ennemis;
+ (void) selection;
+
soins=persos[*Vtourallie].magie*20;
taux=soins/4;
max=soins+taux;
diff --git a/main.c b/main.c
index c5a680d..3dfd1e8 100644
--- a/main.c
+++ b/main.c
@@ -13,6 +13,11 @@ int main (int argc, char *argv[])
srand (time(NULL));
SURFACES surfaces;
POSITIONS positions;
+
+ /* XXX argc and argv are required in some implementations of the SDL library */
+ (void) argc;
+ (void) argv;
+
Finitialisersurfaces (&surfaces);
if (SDL_Init (SDL_INIT_VIDEO) == -1)
{
diff --git a/menuchoixpersos.c b/menuchoixpersos.c
index a137611..325eadc 100644
--- a/menuchoixpersos.c
+++ b/menuchoixpersos.c
@@ -9,8 +9,6 @@
void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions)
{
-
- int nbpersos = 0;
TTF_Font *police = NULL;
int Vchoix = 0;
SDL_Color vert;
diff --git a/menuoptions.c b/menuoptions.c
index 95da338..2f781ce 100644
--- a/menuoptions.c
+++ b/menuoptions.c
@@ -5,6 +5,9 @@
void Foptions (SURFACES *surfaces, POSITIONS *positions)
{
+ /* TODO */
+ (void) surfaces;
+ (void) positions;
}
diff --git a/prototypes.h b/prototypes.h
index 4a75197..b6401b9 100644
--- a/prototypes.h
+++ b/prototypes.h
@@ -59,4 +59,6 @@ void Fchargersurfaces_map (SURFACES *surfaces,POSITIONS*positions);
void Fblittermap (SURFACES*surfaces,POSITIONS*positions,int map[][11]);
void Fdechargersurfaces_map(SURFACES*surfaces);
+void Foptions(SURFACES *surface, POSITIONS *positions);
+
#endif