clear_cmd.c
changeset 926 bd4312619522
parent 909 81bc9ef93f50
child 1035 0a170deb6e33
--- a/clear_cmd.c	Fri Jan 07 12:33:28 2005 +0000
+++ b/clear_cmd.c	Fri Jan 07 17:02:43 2005 +0000
@@ -30,7 +30,7 @@
 	TileIndex *t;
 	int count;
 
-	if (GET_TILE_X(tile) == MapMaxX() || GET_TILE_Y(tile) == MapMaxY())
+	if (TileX(tile) == MapMaxX() || TileY(tile) == MapMaxY())
 		return -1;
 
 	t = ts->tile_table;
@@ -343,8 +343,8 @@
 	ex >>= 4; ey >>= 4;
 
 	// make sure sx,sy are smaller than ex,ey
-	sx = GET_TILE_X(p1);
-	sy = GET_TILE_Y(p1);
+	sx = TileX(p1);
+	sy = TileY(p1);
 	if (ex < sx) intswap(ex, sx);
 	if (ey < sy) intswap(ey, sy);
 	tile = TILE_XY(sx,sy);