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 /blits.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 'blits.c')
-rw-r--r-- | blits.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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) |