From 3183cb79079a20739e68966de2c0c0356e3c67b1 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 14 May 2011 16:01:40 +0000 Subject: [PATCH] (svn r22455) -Fix (r22286): x != y --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index e614c2dbb1..5d2707b70a 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 {