Correction du mode triche
This commit is contained in:
parent
9e330d2387
commit
46cbb95441
@ -101,10 +101,6 @@ int game(int colonnes, int lignes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ToucheEnAttente() && Touche()==XK_t){
|
if (ToucheEnAttente() && Touche()==XK_t){
|
||||||
cheat++;
|
|
||||||
}
|
|
||||||
|
|
||||||
while(cheat) {
|
|
||||||
timer = stop_timer(timer);
|
timer = stop_timer(timer);
|
||||||
for (l = 0; l < lignes; l++) {
|
for (l = 0; l < lignes; l++) {
|
||||||
for (c = 0; c < colonnes; c++) {
|
for (c = 0; c < colonnes; c++) {
|
||||||
@ -118,8 +114,8 @@ int game(int colonnes, int lignes) {
|
|||||||
|
|
||||||
if (Touche()==XK_t){
|
if (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);
|
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);
|
timer = start_timer(timer);
|
||||||
cheat=0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user