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 /road_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 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c index e1208fe0f..9724a9892 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -518,7 +518,7 @@ int32 CmdBuildLongRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (p1 > MapSize()) return CMD_ERROR; start_tile = p1; - end_tile = TILE_FROM_XY(x, y); + end_tile = TileVirtXY(x, y); /* Only drag in X or Y direction dictated by the direction variable */ if (!HASBIT(p2, 2) && TileY(start_tile) != TileY(end_tile)) return CMD_ERROR; // x-axis @@ -572,7 +572,7 @@ int32 CmdRemoveLongRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (p1 > MapSize()) return CMD_ERROR; start_tile = p1; - end_tile = TILE_FROM_XY(x, y); + end_tile = TileVirtXY(x, y); /* Only drag in X or Y direction dictated by the direction variable */ if (!HASBIT(p2, 2) && TileY(start_tile) != TileY(end_tile)) return CMD_ERROR; // x-axis |