summaryrefslogtreecommitdiff
path: root/menuchoixpersos.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 17:26:33 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 17:27:32 +0100
commitc416b1a5520ac5cfad0311d650a76b416c889e50 (patch)
tree4c3c9bcf03b454ea1e6803c780fa0d824f193c13 /menuchoixpersos.c
parente3b507957242134019dd12b4be73350f0ead6475 (diff)
removed unused deprecated constants
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'menuchoixpersos.c')
-rw-r--r--menuchoixpersos.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/menuchoixpersos.c b/menuchoixpersos.c
index f3f5cd3..e2d5cfc 100644
--- a/menuchoixpersos.c
+++ b/menuchoixpersos.c
@@ -145,7 +145,7 @@ struct team_t *new_enemy_team(SURFACES *surfaces, const struct team_t *ally_team
void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions)
{
TTF_Font *police = NULL;
- int Vchoix = PALADIN;
+ int Vchoix = CLASS_PALADIN;
SDL_Color vert;
bool continuer = true;
struct team_t *ally_team;
@@ -169,11 +169,11 @@ void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions)
};
/* display the background with the selected text */
- if (Vchoix == PALADIN) {
+ if (Vchoix == CLASS_PALADIN) {
SDL_BlitSurface (surfaces->Pchoixpaladin,NULL,surfaces->Pecran,&positions->Vpositionmenu);
- } else if (Vchoix == PRETRE) {
+ } else if (Vchoix == CLASS_PRIEST) {
SDL_BlitSurface (surfaces->Pchoixpretre,NULL,surfaces->Pecran,&positions->Vpositionmenu);
- } else if (Vchoix == VOLEUR) {
+ } else if (Vchoix == CLASS_THIEF) {
SDL_BlitSurface (surfaces->Pchoixvoleur,NULL,surfaces->Pecran,&positions->Vpositionmenu);
} else {
abort();
@@ -201,20 +201,20 @@ void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions)
{
case SDLK_LEFT:
case SDLK_h:
- if (Vchoix > PALADIN) {
+ if (Vchoix > CLASS_PALADIN) {
Vchoix--;
} else {
- Vchoix=VOLEUR;
+ Vchoix = CLASS_THIEF;
}
Fchangersurlignage2 (Vchoix,surfaces,positions);
break;
case SDLK_RIGHT:
case SDLK_l:
- if (Vchoix < VOLEUR) {
+ if (Vchoix < CLASS_THIEF) {
Vchoix++;
} else {
- Vchoix = PALADIN;
+ Vchoix = CLASS_PALADIN;
}
Fchangersurlignage2 (Vchoix,surfaces,positions);
break;
@@ -239,11 +239,11 @@ void Fmenuchoixpersos (SURFACES *surfaces, POSITIONS *positions)
void Fchangersurlignage2 (int Vchoix, SURFACES *surfaces, POSITIONS *positions)
{
- if (Vchoix==PALADIN)
+ if (Vchoix == CLASS_PALADIN)
SDL_BlitSurface (surfaces->Pchoixpaladin,NULL,surfaces->Pecran,&positions->Vpositionmenu);
- else if (Vchoix==PRETRE)
+ else if (Vchoix == CLASS_PRIEST)
SDL_BlitSurface (surfaces->Pchoixpretre,NULL,surfaces->Pecran,&positions->Vpositionmenu);
- else if (Vchoix==VOLEUR)
+ else if (Vchoix == CLASS_THIEF)
SDL_BlitSurface (surfaces->Pchoixvoleur,NULL,surfaces->Pecran,&positions->Vpositionmenu);
SDL_BlitSurface (surfaces->Ppretre,NULL,surfaces->Pecran,&positions->Vpositionmenupretre);
SDL_BlitSurface (surfaces->Ppaladin,NULL,surfaces->Pecran,&positions->Vpositionmenupaladin);