road_cmd.c
changeset 1980 9ea0c89fbb58
parent 1979 f4462d4e8e62
child 1981 de031d2aed47
--- a/road_cmd.c	Fri Jun 24 17:41:08 2005 +0000
+++ b/road_cmd.c	Sat Jun 25 06:15:43 2005 +0000
@@ -518,7 +518,7 @@
 	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 @@
 	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