changeset 17680:bbe4f200d1f2 draft

(svn r22455) -Fix (r22286): x != y
author frosch <frosch@openttd.org>
date Sat, 14 May 2011 16:01:40 +0000
parents 1d33b429b1ca
children ee997a9d7f63
files src/newgrf_station.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -114,7 +114,7 @@
 		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 {