(svn r12108) -Fix [FS#1753]: X/Y axis swap for station tiles in GetNearbyTile() was wrong way around.
authorpeter1138
Mon, 11 Feb 2008 11:21:29 +0000
changeset 9029 aa985bbd4d1d
parent 9028 501b3b351df7
child 9030 23b6734d71dd
(svn r12108) -Fix [FS#1753]: X/Y axis swap for station tiles in GetNearbyTile() was wrong way around.
src/newgrf_commons.cpp
--- a/src/newgrf_commons.cpp	Mon Feb 11 04:12:30 2008 +0000
+++ b/src/newgrf_commons.cpp	Mon Feb 11 11:21:29 2008 +0000
@@ -294,7 +294,7 @@
 	if (y >= 8) y -= 16;
 
 	/* Swap width and height depending on axis for railway stations */
-	if (IsRailwayStationTile(tile) && GetRailStationAxis(tile) == AXIS_X) Swap(x, y);
+	if (IsRailwayStationTile(tile) && GetRailStationAxis(tile) == AXIS_Y) Swap(x, y);
 
 	/* Make sure we never roam outside of the map */
 	return TILE_MASK(tile + TileDiffXY(x, y));