From 45d54652a8005ccae2466a0e4757017c7b337e3b Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 21:43:18 +0100 Subject: use a team / character model instead of an array of personnages Signed-off-by: Olivier Gayot --- ia.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ia.c') diff --git a/ia.c b/ia.c index 6f11cb9..f122df2 100644 --- a/ia.c +++ b/ia.c @@ -6,7 +6,7 @@ #include "prototypes.h" #include -void Factionennemi(int* Vtourennemi,SURFACES* surfaces,POSITIONS* positions, ENNEMIS ennemis[], PERSONNAGES persos[],int Vnbennemis,int*Vtour,int Vtourallie) +void Factionennemi(int* Vtourennemi,SURFACES* surfaces,POSITIONS* positions, ENNEMIS ennemis[], PERSONNAGES persos[],int Vnbennemis,int*Vtour) { int target,degats; @@ -31,11 +31,12 @@ void Factionennemi(int* Vtourennemi,SURFACES* surfaces,POSITIONS* positions, ENN positions->Vpositionmort.y=positions->Vpositionpersos[target].y+surfaces->Tperso[target]->h/2-surfaces->Pmort->h/2; SDL_BlitSurface(surfaces->Pmort,NULL,surfaces->Pecran,&positions->Vpositionmort); } + /* TODO re-enable */ +#if 0 Fafficherdegats(surfaces,positions,degats,ALLIE,target,persos); +#endif SDL_Delay(1000); SDL_BlitSurface(surfaces->Pfondjeu,&positions->Vpositiondegats,surfaces->Pecran,&positions->Vpositiondegats); - if(*Vtour==ALLIE) - Fblitcoloredselection(surfaces,positions,Vtourallie,persos); SDL_Flip(surfaces->Pecran); } -- cgit v1.2.3