l'IA fonctionne maintenant de manière instantanée
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
void attendre(int secondes) {
|
||||
time_t start_time = time(NULL);
|
||||
|
||||
while(difftime(time(NULL), start_time) >= secondes) {
|
||||
break;
|
||||
}
|
||||
while(difftime(time(NULL), start_time) < secondes) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void jouerModeHumain(struct EtatJeu *etatJeu) {
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user