From fb6accfcb754d7d703c774d7f72d9ea8760a35e8 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 11 Feb 2008 11:21:29 +0000 Subject: [PATCH] (svn r12108) -Fix [FS#1753]: X/Y axis swap for station tiles in GetNearbyTile() was wrong way around. --- src/newgrf_commons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index 59d0b06f18..6bb2612d94 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -294,7 +294,7 @@ TileIndex GetNearbyTile(byte parameter, TileIndex tile) 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));