From 9617614b04b7e2981ebff5074b55778381ca8b20 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 25 Jun 2005 16:44:57 +0000 Subject: (svn r2487) Replace TILE_XY by TileXY/TileDiffXY --- road_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'road_cmd.c') diff --git a/road_cmd.c b/road_cmd.c index 9724a9892..f5c1beac4 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -548,7 +548,7 @@ int32 CmdBuildLongRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (tile == end_tile) break; - tile += HASBIT(p2, 2) ? TILE_XY(0, 1) : TILE_XY(1, 0); + tile += HASBIT(p2, 2) ? TileDiffXY(0, 1) : TileDiffXY(1, 0); } return (cost == 0) ? CMD_ERROR : cost; @@ -602,7 +602,7 @@ int32 CmdRemoveLongRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (tile == end_tile) break; - tile += HASBIT(p2, 2) ? TILE_XY(0, 1) : TILE_XY(1, 0); + tile += HASBIT(p2, 2) ? TileDiffXY(0, 1) : TileDiffXY(1, 0); } return (cost == 0) ? CMD_ERROR : cost; -- cgit v1.2.3-54-g00ecf