summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-05-10 01:36:18 -0300
committerpanikon <panikon@zoho.com>2014-05-10 01:36:18 -0300
commita2dec941492c9b7e56e3e34600e3fba9937cbf65 (patch)
treeb7fa54d2d8736e355efd8a0738a453f1417a4cbf /src/map/npc.h
parent6d4ae7670d0acca504d17d27b5c971be6625a311 (diff)
downloadhercules-a2dec941492c9b7e56e3e34600e3fba9937cbf65.tar.gz
hercules-a2dec941492c9b7e56e3e34600e3fba9937cbf65.tar.bz2
hercules-a2dec941492c9b7e56e3e34600e3fba9937cbf65.tar.xz
hercules-a2dec941492c9b7e56e3e34600e3fba9937cbf65.zip
Small changes in npc loading/reloading
Compartmentalized npc file processing Corrected event initalisation order in npc_reload Changed loading order, now item db constants are loaded before npc processing in order to avoid labels overwriting constants values, like Aegis Names Added information regarding reloading scripts in /doc/script_commands.txt
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index a277d4968..6e9686d33 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -193,7 +193,7 @@ struct npc_interface {
int (*event_doall_id) (const char *name, int rid);
int (*event_doall) (const char *name);
int (*event_do_clock) (int tid, int64 tick, int id, intptr_t data);
- void (*event_do_oninit) (void);
+ void (*event_do_oninit) ( bool reload );
int (*timerevent_export) (struct npc_data *nd, int i);
int (*timerevent) (int tid, int64 tick, int id, intptr_t data);
int (*timerevent_start) (struct npc_data *nd, int rid);