This bug was introduced by r2544. By reverting the changes in this case, one can fix this bug:
Index: simwerkz.cc
===================================================================
--- simwerkz.cc (revision 2614)
+++ simwerkz.cc (working copy)
@@ -915,8 +915,9 @@
if(new_slope == RESTORE_SLOPE) {
// prissi: special action: set to natural slope
- new_pos = pos;
- slope_this = welt->calc_natural_slope(pos.get_2d());
+ koord pos2d = pos.get_2d();
+ new_pos = koord3d( pos2d ,welt->min_hgt( pos2d ));
+ slope_this = welt->calc_natural_slope( pos2d );
DBG_MESSAGE("natural_slope","%i",slope_this);
}
else {