summaryrefslogtreecommitdiff
path: root/blits.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 /blits.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 'blits.c')
-rw-r--r--blits.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/blits.c b/blits.c
index eff5c4d..318e72f 100644
--- a/blits.c
+++ b/blits.c
@@ -152,7 +152,7 @@ void Fchangercurseurpersos (SURFACES *surfaces, POSITIONS *positions, struct cha
TTF_CloseFont(police);
}
-void Fchangeractionselectionnee(SURFACES *surfaces, POSITIONS *positions,int selection,int page,int nbactions,int type,OBJET *objets)
+void Fchangeractionselectionnee(SURFACES *surfaces, POSITIONS *positions,int selection,int page,int nbactions,int type)
{
int i;
TTF_Font *police=NULL;
@@ -216,22 +216,26 @@ void Fchangeractionselectionnee(SURFACES *surfaces, POSITIONS *positions,int sel
ECRIRE("POTION",0);
ECRIRE("ETHER",1);
ECRIRE("POTION +",2);
- sprintf(chaine[0],"%d",objets->potions);
+#if 0
+ sprintf(chaine[0],"%d", ally->objects.potions);
surfaces->Pquantite[0]=TTF_RenderText_Blended(police,chaine[0],couleur);
- sprintf(chaine[1],"%d",objets->ethers);
+ sprintf(chaine[1],"%d", ally->objects.ethers);
surfaces->Pquantite[1]=TTF_RenderText_Blended(police,chaine[1],couleur);
- sprintf(chaine[2],"%d",objets->potionsplus);
+ sprintf(chaine[2],"%d", ally->objects.potionsplus);
surfaces->Pquantite[2]=TTF_RenderText_Blended(police,chaine[2],couleur);
SDL_BlitSurface(surfaces->Pquantite[0],NULL,surfaces->Pecran,&positions->Vpositionquantite[0]);
SDL_BlitSurface(surfaces->Pquantite[1],NULL,surfaces->Pecran,&positions->Vpositionquantite[1]);
SDL_BlitSurface(surfaces->Pquantite[2],NULL,surfaces->Pecran,&positions->Vpositionquantite[2]);
+#endif
}
else if(page==1)
{
ECRIRE("ETHER +",0);
- sprintf(chaine[0],"%d",objets->ethersplus);
+#if 0
+ sprintf(chaine[0],"%d", ally->objects.ethersplus);
surfaces->Pquantite[0]=TTF_RenderText_Blended(police,chaine[0],couleur);
SDL_BlitSurface(surfaces->Pquantite[0],NULL,surfaces->Pecran,&positions->Vpositionquantite[0]);
+#endif
}
}
if (page==nbactions/3)