diff options
Diffstat (limited to 'menuchoixpersos.c')
-rw-r--r-- | menuchoixpersos.c | 22 |
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); |