diff options
author | tron <tron@openttd.org> | 2005-01-07 17:02:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-07 17:02:43 +0000 |
commit | 414ac3286b10b83d8f832c58f48f373f5130cb89 (patch) | |
tree | e4137b60a824b45ce09f668d58520e36dba10256 /tree_cmd.c | |
parent | fe798488e6c03311cee8328398c7ce5e235f70c8 (diff) | |
download | openttd-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 'tree_cmd.c')
-rw-r--r-- | tree_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tree_cmd.c b/tree_cmd.c index b7316312c..52854c9c6 100644 --- a/tree_cmd.c +++ b/tree_cmd.c @@ -155,8 +155,8 @@ int32 CmdPlantTree(int ex, int ey, uint32 flags, uint32 p1, uint32 p2) SET_EXPENSES_TYPE(EXPENSES_OTHER); // make sure sx,sy are smaller than ex,ey - sx = GET_TILE_X(p2)*16; - sy = GET_TILE_Y(p2)*16; + sx = TileX(p2) * 16; + sy = TileY(p2) * 16; if (ex < sx) intswap(ex, sx); if (ey < sy) intswap(ey, sy); |