Correction de bug sur le mode triche
- Lorsque le mode triche était actif, si une touche autre que "T" était pressé, le jeu reprenait sans effectuer les actions nécessaires pour sortit du mode triche.
This commit is contained in:
parent
46cbb95441
commit
434a32b72d
@ -112,13 +112,12 @@ int game(int colonnes, int lignes) {
|
||||
|
||||
CopierZone(1,0,GAME_MARGIN_RIGHT,GAME_MARGIN_TOP,WINDOW_WIDTH - (GAME_MARGIN_RIGHT + GAME_MARGIN_LEFT),WINDOW_HEIGHT - (GAME_MARGIN_TOP + GAME_MARGIN_BOTTOM),GAME_MARGIN_RIGHT,GAME_MARGIN_TOP);
|
||||
|
||||
if (Touche()==XK_t){
|
||||
while (Touche()!=XK_t);
|
||||
CopierZone(2,0,GAME_MARGIN_RIGHT,GAME_MARGIN_TOP,WINDOW_WIDTH - (GAME_MARGIN_RIGHT + GAME_MARGIN_LEFT),WINDOW_HEIGHT - (GAME_MARGIN_TOP + GAME_MARGIN_BOTTOM),GAME_MARGIN_RIGHT,GAME_MARGIN_TOP);
|
||||
while (SourisCliquee());
|
||||
timer = start_timer(timer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (l = 0; l < lignes; l++) {
|
||||
for (c = 0; c < colonnes; c++) {
|
||||
|
Loading…
Reference in New Issue
Block a user