diff options
author | shennetsind <ind@henn.et> | 2013-07-26 09:59:30 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-26 09:59:30 -0300 |
commit | b23563de5f9abde73600f84aff1d24d9f3b53bc5 (patch) | |
tree | 21ed35a07c74c224957b888b12e387cdd3751561 /src/map/atcommand.c | |
parent | 583272234fc96da7911029cd3cad13a7fb386e9e (diff) | |
parent | e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60 (diff) | |
download | hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.tar.gz hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.tar.bz2 hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.tar.xz hercules-b23563de5f9abde73600f84aff1d24d9f3b53bc5.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index e3cf37cf1..069856754 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -6152,10 +6152,10 @@ ACMD(cleanarea) int x0 = 0, y0 = 0, x1 = 0, y1 = 0; if (!message || !*message || sscanf(message, "%d %d %d %d", &x0, &y0, &x1, &y1) < 1) { - iMap->foreachinarea(atcommand_cleanfloor_sub, sd->bl.m, sd->bl.x - (AREA_SIZE * 2), sd->bl.y - (AREA_SIZE * 2), sd->bl.x + (AREA_SIZE * 2), sd->bl.y + (AREA_SIZE * 2), BL_ITEM); + iMap->foreachinrange(atcommand_cleanfloor_sub, &sd->bl, AREA_SIZE * 2, BL_ITEM); } else if (sscanf(message, "%d %d %d %d", &x0, &y0, &x1, &y1) == 1) { - iMap->foreachinarea(atcommand_cleanfloor_sub, sd->bl.m, sd->bl.x - x0, sd->bl.y - x0, sd->bl.x + x0, sd->bl.y + x0, BL_ITEM); + iMap->foreachinrange(atcommand_cleanfloor_sub, &sd->bl, x0, BL_ITEM); } else if (sscanf(message, "%d %d %d %d", &x0, &y0, &x1, &y1) == 4) { iMap->foreachinarea(atcommand_cleanfloor_sub, sd->bl.m, x0, y0, x1, y1, BL_ITEM); |