summaryrefslogtreecommitdiff
path: root/rail_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-07 17:02:43 +0000
committertron <tron@openttd.org>2005-01-07 17:02:43 +0000
commit414ac3286b10b83d8f832c58f48f373f5130cb89 (patch)
treee4137b60a824b45ce09f668d58520e36dba10256 /rail_gui.c
parentfe798488e6c03311cee8328398c7ce5e235f70c8 (diff)
downloadopenttd-414ac3286b10b83d8f832c58f48f373f5130cb89.tar.xz
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
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);