(svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch)
authortruelight
Mon, 23 Jul 2007 15:18:53 +0000
changeset 7304 173699789cc3
parent 7303 94bea4f9eb37
child 7305 78bb08bfc64f
(svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch)
src/landscape.cpp
--- a/src/landscape.cpp	Mon Jul 23 15:14:45 2007 +0000
+++ b/src/landscape.cpp	Mon Jul 23 15:18:53 2007 +0000
@@ -152,7 +152,7 @@
 		break;
 
 	case SLOPE_STEEP_E:
-		z = 1 + (((x ^ 0xF) + (y ^ 0xF)) >> 1);
+		z = 1 + (((x ^ 0xF) + y) >> 1);
 		break;
 
 		default: break;