summaryrefslogtreecommitdiff
path: root/constantes.h
diff options
context:
space:
mode:
Diffstat (limited to 'constantes.h')
-rw-r--r--constantes.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/constantes.h b/constantes.h
index 24111d3..b3f9335 100644
--- a/constantes.h
+++ b/constantes.h
@@ -85,7 +85,7 @@ if(clan==ALLIE)\
selection=0;\
while(ennemis[selection].etat==MORT)\
selection++;\
- inverse(&clan);\
+ inverse_boolean(clan);\
SDL_BlitSurface (surfaces->Pfondjeu,&positions->Vpositioncurseurallies,surfaces->Pecran,&positions->Vpositioncurseurallies);\
Fchangercurseurennemis (surfaces,positions,selection,ennemis);\
}\
@@ -98,7 +98,7 @@ if(clan==ENNEMI)\
selection=0;\
while(persos[selection].etat==MORT)\
selection++;\
- inverse(&clan);\
+ inverse_boolean(clan);\
SDL_BlitSurface(surfaces->Pfondjeu,&positions->Vpositioncurseurennemis,surfaces->Pecran,&positions->Vpositioncurseurennemis);\
Fchangercurseurpersos(surfaces,positions,selection,persos);\
}\
@@ -170,4 +170,7 @@ else\
}\
break;
+#include <stdbool.h>
+#define inverse_boolean(_b) ((_b) = (((_b)) ? false : true))
+
#endif