diff options
author | Freeyorp <Freeyorp101@hotmail.com> | 2010-04-11 17:15:02 +1200 |
---|---|---|
committer | Freeyorp <Freeyorp101@hotmail.com> | 2010-04-11 17:15:02 +1200 |
commit | ff7e96f79568d6f5b0ff4bad7da7de40c57481a5 (patch) | |
tree | d40a2264e51915d66a4a126207f2af3d74b709af | |
parent | ceaa150dead7dc1bb5d356b41bf05d9104c7d724 (diff) | |
download | tmwa-ff7e96f79568d6f5b0ff4bad7da7de40c57481a5.tar.gz tmwa-ff7e96f79568d6f5b0ff4bad7da7de40c57481a5.tar.bz2 tmwa-ff7e96f79568d6f5b0ff4bad7da7de40c57481a5.tar.xz tmwa-ff7e96f79568d6f5b0ff4bad7da7de40c57481a5.zip |
Quick fix for when a moved npc goes out of range
-rw-r--r-- | src/map/npc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index ab0e7ff..fc994f5 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -915,8 +915,10 @@ int npc_click (struct map_session_data *sd, int id) return 1; } - if (npc_checknear (sd, id)) + if (npc_checknear (sd, id)) { + clif_scriptclose (sd, id); return 1; + } nd = (struct npc_data *) map_id2bl (id); @@ -957,8 +959,10 @@ int npc_scriptcont (struct map_session_data *sd, int id) if (id != sd->npc_id) return 1; - if (npc_checknear (sd, id)) + if (npc_checknear (sd, id)) { + clif_scriptclose (sd, id); return 1; + } nd = (struct npc_data *) map_id2bl (id); |