diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 21:43:18 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 23:29:49 +0100 |
commit | 45d54652a8005ccae2466a0e4757017c7b337e3b (patch) | |
tree | 5d13f930c82edeea16d490c39017973e0a85007c /ia.c | |
parent | b3295086c84b09353d5e89c6f7c743167b486a49 (diff) |
use a team / character model instead of an array of personnages
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'ia.c')
-rw-r--r-- | ia.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6,7 +6,7 @@ #include "prototypes.h" #include <time.h> -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); } |