summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-10-25 17:14:22 +0100
committerHaru <haru@dotalux.com>2015-11-12 00:01:03 +0100
commit8db74e2781bb71be6cf58d495739dcd1787428e3 (patch)
tree13277e702e8d399cbf70fec420767f6408feb027 /src/map/npc.h
parent29a057e286d2203108f93f362c1250c70d7bf511 (diff)
downloadhercules-8db74e2781bb71be6cf58d495739dcd1787428e3.tar.gz
hercules-8db74e2781bb71be6cf58d495739dcd1787428e3.tar.bz2
hercules-8db74e2781bb71be6cf58d495739dcd1787428e3.tar.xz
hercules-8db74e2781bb71be6cf58d495739dcd1787428e3.zip
Split the duplication logic away from the parsing logic in NPC duplicates
- Fixes #812 (warning message while creating instances) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index 340785aa6..a4ebf3d76 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -238,6 +238,7 @@ struct npc_interface {
void (*convertlabel_db) (struct npc_label_list *label_list, const char *filepath);
const char* (*skip_script) (const char *start, const char *buffer, const char *filepath, int *retval);
const char* (*parse_script) (char *w1, char *w2, char *w3, char *w4, const char *start, const char *buffer, const char *filepath, int options, int *retval);
+ bool (*duplicate_sub) (struct npc_data *nd, const struct npc_data *snd, int class_, int dir, int xs, int ys, int options);
const char* (*parse_duplicate) (char* w1, char* w2, char* w3, char* w4, const char* start, const char* buffer, const char* filepath, int options, int *retval);
int (*duplicate4instance) (struct npc_data *snd, int16 m);
void (*setcells) (struct npc_data *nd);