water_cmd.c
changeset 1980 9ea0c89fbb58
parent 1977 4392ae3d8e31
child 1981 de031d2aed47
--- a/water_cmd.c	Fri Jun 24 17:41:08 2005 +0000
+++ b/water_cmd.c	Sat Jun 25 06:15:43 2005 +0000
@@ -38,7 +38,7 @@
 
 	if (p1 > 3) return CMD_ERROR;
 
-	tile = TILE_FROM_XY(x,y);
+	tile = TileVirtXY(x, y);
 	if (!EnsureNoVehicle(tile)) return CMD_ERROR;
 
 	tile2 = tile + (p1 ? TILE_XY(0,1) : TILE_XY(1,0));
@@ -166,7 +166,7 @@
  */
 int32 CmdBuildLock(int x, int y, uint32 flags, uint32 p1, uint32 p2)
 {
-	TileIndex tile = TILE_FROM_XY(x,y);
+	TileIndex tile = TileVirtXY(x, y);
 	uint tileh;
 
 	SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);