Fix #896 non-flat terrain is now supported.