Эмм... Гхмм...
Code:
if ((abs(next height) - abs(current height)) > 0xF)
I think something... Really...
BTW, I think (ehhhe... think...), this code much simple...
if(Hcur < Hnext) -> if((Hnext - Hcur) & ~0xF) -> fall down to lower layer
So, MB default NSEW diff must be 15 ? (or this must be fixed to 15 ?)