forked from mirror/OpenTTD
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user