summaryrefslogtreecommitdiff
path: root/rail_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'rail_gui.c')
-rw-r--r--rail_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rail_gui.c b/rail_gui.c
index 5e0ea7a33..7958f9f82 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -819,10 +819,10 @@ void ShowBuildRailToolbar(int index, int button)
static void HandleStationPlacement(uint start, uint end)
{
- uint sx = GET_TILE_X(start);
- uint sy = GET_TILE_Y(start);
- uint ex = GET_TILE_X(end);
- uint ey = GET_TILE_Y(end);
+ uint sx = TileX(start);
+ uint sy = TileY(start);
+ uint ex = TileX(end);
+ uint ey = TileY(end);
uint w,h;
if (sx > ex) intswap(sx,ex);