diff options
author | tron <tron@openttd.org> | 2005-06-25 06:15:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-25 06:15:43 +0000 |
commit | 61f6f07edd837728d72e83daa0a4b8893ec77307 (patch) | |
tree | 3374c2cd95704c5e34c2a7c62b0ba647c4002e7f /clear_cmd.c | |
parent | cea090af09fbee47ef4eea01190ba8eb8e17aef8 (diff) | |
download | openttd-61f6f07edd837728d72e83daa0a4b8893ec77307.tar.xz |
(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index 2aa18001b..27ce96091 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -236,7 +236,7 @@ int32 CmdTerraformLand(int x, int y, uint32 flags, uint32 p1, uint32 p2) ts.modheight = modheight_data; ts.tile_table = tile_table_data; - tile = TILE_FROM_XY(x,y); + tile = TileVirtXY(x, y); /* Make an extra check for map-bounds cause we add tiles to the originating tile */ if (tile + TILE_XY(1,1) > MapSize()) return CMD_ERROR; @@ -394,7 +394,7 @@ int32 CmdPurchaseLandArea(int x, int y, uint32 flags, uint32 p1, uint32 p2) SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); - tile = TILE_FROM_XY(x,y); + tile = TileVirtXY(x, y); if (!EnsureNoVehicle(tile)) return CMD_ERROR; @@ -450,7 +450,7 @@ int32 CmdSellLandArea(int x, int y, uint32 flags, uint32 p1, uint32 p2) SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); - tile = TILE_FROM_XY(x,y); + tile = TileVirtXY(x, y); if (!IsTileType(tile, MP_UNMOVABLE) || _map5[tile] != 3) return CMD_ERROR; if (!CheckTileOwnership(tile) && _current_player != OWNER_WATER) return CMD_ERROR; |