summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-09 18:11:32 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-09 18:11:32 +0000
commit0638d728c718e648e622a524e5c3010d23b049d0 (patch)
tree5f7786bcb230531682387b34e77598c7a4bbfbc7 /src/map/atcommand.c
parentd9cf596186c4432f100a70a5395587536a879223 (diff)
downloadhercules-0638d728c718e648e622a524e5c3010d23b049d0.tar.gz
hercules-0638d728c718e648e622a524e5c3010d23b049d0.tar.bz2
hercules-0638d728c718e648e622a524e5c3010d23b049d0.tar.xz
hercules-0638d728c718e648e622a524e5c3010d23b049d0.zip
- Fixed @npcmove not sending the correct packets to make the moving refresh client-side.
- Fixed mobs with aggressive + looter mode never looting. - skill_wall_check now also checks for pits so that skill effects don't go through them. - Now you can't leave/be-kicked from a guild inside guild castles. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5969 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 48ee58056..189843fd6 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7021,13 +7021,13 @@ atcommand_npcmove(const int fd, struct map_session_data* sd,
if ((m=nd->bl.m) < 0 || nd->bl.prev == NULL)
return -1; //Not on a map.
- npc_enable(atcmd_player_name, 0);
if (x < 0) x = 0;
else if (x >= map[m].xs) x = map[m].xs-1;
if (y < 0) y = 0;
else if (y >= map[m].ys) y = map[m].ys-1;
+ map_foreachinrange(clif_outsight, &nd->bl, AREA_SIZE, BL_PC, &nd->bl);
map_moveblock(&nd->bl, x, y, gettick());
- npc_enable(atcmd_player_name, 1);
+ map_foreachinrange(clif_insight, &nd->bl, AREA_SIZE, BL_PC, &nd->bl);
return 0;
}