From 3ce600a644e4b2fc5c3ccffad1d2fb9bd970c5de Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 23 Jul 2007 15:18:53 +0000 Subject: [PATCH] (svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch) --- src/landscape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/landscape.cpp b/src/landscape.cpp index 698ba9f4af..73f5922cc8 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -152,7 +152,7 @@ uint GetPartialZ(int x, int y, Slope corners) break; case SLOPE_STEEP_E: - z = 1 + (((x ^ 0xF) + (y ^ 0xF)) >> 1); + z = 1 + (((x ^ 0xF) + y) >> 1); break; default: break;