summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-07-23 15:18:53 +0000
committertruelight <truelight@openttd.org>2007-07-23 15:18:53 +0000
commit3ce600a644e4b2fc5c3ccffad1d2fb9bd970c5de (patch)
treefe34d7692776517a395213694297afce84cd2dd7 /src
parentc4e47c07c9b18023e7bb57670a33924b21ef2ff8 (diff)
downloadopenttd-3ce600a644e4b2fc5c3ccffad1d2fb9bd970c5de.tar.xz
(svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch)
Diffstat (limited to 'src')
-rw-r--r--src/landscape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 698ba9f4a..73f5922cc 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;