summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-14 16:01:40 +0000
committerfrosch <frosch@openttd.org>2011-05-14 16:01:40 +0000
commit3183cb79079a20739e68966de2c0c0356e3c67b1 (patch)
tree04773346596fb1550046f2b7281bcdf299f70518 /src/newgrf_station.cpp
parent20e86fd5ea07b2ae0082f48ddb54d4da10b9d486 (diff)
downloadopenttd-3183cb79079a20739e68966de2c0c0356e3c67b1.tar.xz
(svn r22455) -Fix (r22286): x != y
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index e614c2dbb..5d2707b70 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -114,7 +114,7 @@ uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, i
x -= platforms / 2;
y -= length / 2;
x = Clamp(x, -8, 7);
- y = Clamp(x, -8, 7);
+ y = Clamp(y, -8, 7);
SB(retval, 0, 4, y & 0xF);
SB(retval, 4, 4, x & 0xF);
} else {