this a very funny c project. But I found the screen is in a mess when I played it.
It Appears to be a problem of Multithread problem.
I fix it as following ,and it looks working.
int load_map2(INTERF * interf, int win_number, int row, int column, FILE *f) {
pthread_mutex_lock(&mutex);
......
pthread_mutex_unlock(&mutex);
}
this a very funny c project. But I found the screen is in a mess when I played it. It Appears to be a problem of Multithread problem.
I fix it as following ,and it looks working. int load_map2(INTERF * interf, int win_number, int row, int column, FILE *f) { pthread_mutex_lock(&mutex); ...... pthread_mutex_unlock(&mutex); }