carlosruizp / ASCII-BIRD

A little "flappy bird" for the linux terminal
6 stars 0 forks source link

screen in a mess #2

Open caohongtao opened 9 years ago

caohongtao commented 9 years ago

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); }