Skip to content
Snippets Groups Projects
Commit 7cba235a authored by Le-Bao-Tin.Ha's avatar Le-Bao-Tin.Ha
Browse files

fix error move.c

parent 5cf33d2b
No related branches found
No related tags found
4 merge requests!8Modele,!7Modele,!6Modele,!5Modele Version 1
......@@ -124,7 +124,7 @@ void prof_move(Prof *prof, int * predirection, SDL_Rect * prof_rect, MAP * map,
do {
randdirect = rand()%4;
}
while(((randdirect == 0) && (predirection == 1)) || ((randdirect == 1) && (predirection == 0)) || ((randdirect == 2) && (predirection == 3)) || ((randdirect == 3) && (predirection == 2)));
while(((randdirect == 0) && (*predirection == 1)) || ((randdirect == 1) && (*predirection == 0)) || ((randdirect == 2) && (*predirection == 3)) || ((randdirect == 3) && (*predirection == 2)));
*predirection = randdirect;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment