diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 16:08:01 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 16:08:01 +0000 |
commit | 6e4d98865963ef3e85df488716e9a97bfcacc98b (patch) | |
tree | 02501055909d8db00138b69db2a8e8c841f0cc72 /src/map/npc_chat.c | |
parent | d5155d42388cf3540fdf415512c2bfad0c8d5f8e (diff) | |
download | hercules-6e4d98865963ef3e85df488716e9a97bfcacc98b.tar.gz hercules-6e4d98865963ef3e85df488716e9a97bfcacc98b.tar.bz2 hercules-6e4d98865963ef3e85df488716e9a97bfcacc98b.tar.xz hercules-6e4d98865963ef3e85df488716e9a97bfcacc98b.zip |
* mob_chat_sub fix. Added buildin_pcblockmove.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5628 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r-- | src/map/npc_chat.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c index 7d8e0e21f..eaab82aff 100644 --- a/src/map/npc_chat.c +++ b/src/map/npc_chat.c @@ -372,20 +372,6 @@ void npc_chat_finalize(struct npc_data *nd) aFree(npcParse);
}
-int mob_chat_sub(struct block_list *bl, va_list ap){
- int len;
- unsigned char *msg = NULL;
- struct map_session_data *sd = NULL;
- struct mob_data *md = (struct mob_data *)bl;
- if(md->nd){
- msg = va_arg(ap,unsigned char*);
- len = va_arg(ap,int);
- sd = va_arg(ap,struct map_session_data *);
- npc_chat_sub(&md->nd->bl, msg, len, sd);
- }
- return 0;
-}
-
/**
* Handler called whenever a global message is spoken in a NPC's area
*/
@@ -491,6 +477,14 @@ int npc_chat_sub(struct block_list *bl, va_list ap) return 0;
}
+int mob_chat_sub(struct block_list *bl, va_list ap){
+ struct mob_data *md = (struct mob_data *)bl;
+ if(md->nd){
+ npc_chat_sub(&md->nd->bl, ap);
+ }
+ return 0;
+}
+
// Various script builtins used to support these functions
int buildin_defpattern(struct script_state *st) {
|