The read access to min_height and max_height at the beginning of karte_t::plans_finish_rd needs to be synchronized since another thread might be writing to any of these two variables.
Imho no mutex is needed. It would be sufficient to initialize those values with -128 and +127. The writing to min//max_height is already protected by some mutex.
Yes, that would work too. :)
implemented in r9060