Bug fixed ! I had a hard time finding it. The problem was the cast in
terrain.pyx line 859. For unknown reason it don't work properly on my mac.

The bug happend when self._max_level + 1 - <int> (d / r) = -1 the result
of the cast from int to char is 255. I don't understant why, I never
experienced this kind of problem befor. I solved it by removing the cast
and declaring level as int. Pyrex perform an automatic cast when calling
_patch_set_level.

I will make a patch.

Souvarine.

_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user

Reply via email to