From 414ac3286b10b83d8f832c58f48f373f5130cb89 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 7 Jan 2005 17:02:43 +0000 Subject: (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY] --- command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index cf4ac7944..eff7af906 100644 --- a/command.c +++ b/command.c @@ -325,7 +325,7 @@ bool IsValidCommand(int cmd) int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { - return DoCommand(GET_TILE_X(tile)*16, GET_TILE_Y(tile)*16, p1, p2, flags, procc); + return DoCommand(TileX(tile) * 16, TileY(tile) * 16, p1, p2, flags, procc); } @@ -401,8 +401,8 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 flags; bool notest; - int x = GET_TILE_X(tile)*16; - int y = GET_TILE_Y(tile)*16; + int x = TileX(tile) * 16; + int y = TileY(tile) * 16; assert(_docommand_recursive == 0); -- cgit v1.2.3-54-g00ecf