Changeset - r8533:775edd4299ed
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-02-11 11:21:29
peter1138@openttd.org
(svn r12108) -Fix [FS#1753]: X/Y axis swap for station tiles in GetNearbyTile() was wrong way around.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_commons.cpp
Show inline comments
 
@@ -294,7 +294,7 @@ TileIndex GetNearbyTile(byte parameter, 
 
	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));
0 comments (0 inline, 0 general)