diff --git a/main.c b/main.c index 4c3d558..6054ceb 100644 --- a/main.c +++ b/main.c @@ -23,7 +23,7 @@ void Affichertimer(int n) /*Afficher le temps passé*/ CopierZone(2,1,0,0,930,710,0,0); snprintf(buf,100,"temps : %05d",n); TailleSupPolice(7); - EcrireTexte(60,650,buf,2+1); + EcrireTexte(60,650,buf,2); TailleSupPolice(7); CopierZone(1,0,0,0,930,710,0,0); } @@ -158,15 +158,13 @@ int main() { unsigned long suivant; int go_on=1; - int n; int x_pastille,y_pastille; - + int n = 0; size_t longueur_serpent = 20; size_t longueur_pastilles = 10; int *serpent = (int *)malloc(longueur_serpent * sizeof(int)); int *pastilles = (int *)malloc(longueur_pastilles * sizeof(int)); int direction = 0; - suivant=Microsecondes()+delta; if(serpent == NULL) { fprintf(stderr, "Erreur d'allocation de mémoire.\n"); diff --git a/prog b/prog index c850a9f..7d15374 100755 Binary files a/prog and b/prog differ