summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-07-28 19:12:18 +0200
committerGitHub <noreply@github.com>2019-07-28 19:12:18 +0200
commitfa1dd260730ccc0b49d17ded96ee298cd514ba05 (patch)
tree2fdfdfcbd38fb49b3562dcd2165d14fd36439c67 /src/map
parenta6b4cc86b0ab4a20ae237d49a1a8502a10159239 (diff)
parent0bdc4bd177ba2718cd0ec68d2106aa8dee77f6e9 (diff)
downloadhercules-fa1dd260730ccc0b49d17ded96ee298cd514ba05.tar.gz
hercules-fa1dd260730ccc0b49d17ded96ee298cd514ba05.tar.bz2
hercules-fa1dd260730ccc0b49d17ded96ee298cd514ba05.tar.xz
hercules-fa1dd260730ccc0b49d17ded96ee298cd514ba05.zip
Merge pull request #2499 from Emistry/atcommand_refresh
Disable refresh atcommand when talk with NPC.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a2db15f6c..ff71d97aa 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6752,6 +6752,9 @@ ACMD(mute)
*------------------------------------------*/
ACMD(refresh)
{
+ if (sd->npc_id > 0)
+ return false;
+
clif->refresh(sd);
return true;
}
@@ -6763,7 +6766,8 @@ ACMD(refreshall)
iter = mapit_getallusers();
for (iter_sd = BL_UCAST(BL_PC, mapit->first(iter)); mapit->exists(iter); iter_sd = BL_UCAST(BL_PC, mapit->next(iter)))
- clif->refresh(iter_sd);
+ if (iter_sd->npc_id <= 0)
+ clif->refresh(iter_sd);
mapit->free(iter);
return true;
}