summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-13 08:43:39 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-13 08:43:39 -0600
commit72eb808de6efd156af1463219572d809caf48978 (patch)
tree7eaeaeca11fe793f8b8de00f7797e5dbd9b6cea1 /src/map/npc.c
parentf6296b7d766a20ad7a48f8e4b01ce67402ae2931 (diff)
downloadtmwa-72eb808de6efd156af1463219572d809caf48978.tar.gz
tmwa-72eb808de6efd156af1463219572d809caf48978.tar.bz2
tmwa-72eb808de6efd156af1463219572d809caf48978.tar.xz
tmwa-72eb808de6efd156af1463219572d809caf48978.zip
Fix single message NPCs
Also have magic effect NPCs talk (they just say "?") to prevent problems when accidentally talking to them.
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 5fe190b..4e444b1 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -836,7 +836,10 @@ int npc_click(struct map_session_data *sd,int id)
break;
case MESSAGE:
if (nd->u.message)
+ {
clif_scriptmes(sd, id, nd->u.message);
+ clif_scriptclose(sd, id);
+ }
break;
}