1
0

Correction du mode triche

This commit is contained in:
Tom MOGULJAK 2022-12-04 17:11:11 +01:00
parent 9e330d2387
commit 46cbb95441

View File

@ -101,10 +101,6 @@ int game(int colonnes, int lignes) {
}
if (ToucheEnAttente() && Touche()==XK_t){
cheat++;
}
while(cheat) {
timer = stop_timer(timer);
for (l = 0; l < lignes; l++) {
for (c = 0; c < colonnes; c++) {
@ -118,8 +114,8 @@ int game(int colonnes, int lignes) {
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);
while (SourisCliquee());
timer = start_timer(timer);
cheat=0;
}
}
}