diff options
Diffstat (limited to 'magies.c')
-rw-r--r-- | magies.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -30,6 +30,7 @@ int Fmagieelement (SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[], switch (event.key.keysym.sym) { case SDLK_ESCAPE: + case SDLK_a: continuer = 0; if(clan==ENNEMI) { @@ -42,6 +43,7 @@ int Fmagieelement (SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[], break; SELECTION_CIBLE() case SDLK_RETURN: + case SDLK_f: continuer=0; max=Fcalculerdegats(persos,Vtourallie,&min,ennemis,selection,clan,TYPE_MAGIE); degats=(rand()%(max-min+1))+min; @@ -151,6 +153,7 @@ int Fmagiesoin(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[],int switch(event.key.keysym.sym) { case SDLK_ESCAPE: + case SDLK_a: continuer = 0; if(clan==ENNEMI) { @@ -163,6 +166,7 @@ int Fmagiesoin(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[],int break; SELECTION_CIBLE() case SDLK_RETURN: + case SDLK_f: max=Fcalculersoins(persos,Vtourallie,&min,ennemis,selection); soins=(rand()%(max-min+1))+min; if(soins<0) |