diff options
author | KirieZ <guilherme.menaldo@outlook.com> | 2017-07-30 13:45:41 -0300 |
---|---|---|
committer | KirieZ <guilherme.menaldo@outlook.com> | 2017-07-30 13:45:41 -0300 |
commit | 544da439e81ff78ec102b754e16b6cc0a28a6d0a (patch) | |
tree | 6fef53b94dec9f72b65b39df08fb8eb4160a467f /src/map/map.c | |
parent | 71d694baa88d2beb6ec0f89fb2f8b733898acea5 (diff) | |
download | hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.gz hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.bz2 hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.tar.xz hercules-544da439e81ff78ec102b754e16b6cc0a28a6d0a.zip |
Implementation of RoDEX
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 17156f631..f8aebcfa6 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -55,6 +55,7 @@ #include "map/skill.h" #include "map/status.h" #include "map/storage.h" +#include "map/rodex.h" #include "map/trade.h" #include "map/unit.h" #include "common/HPM.h" @@ -1915,6 +1916,7 @@ int map_quit(struct map_session_data *sd) { } npc->script_event(sd, NPCE_LOGOUT); + rodex->clean(sd, 0); //Unit_free handles clearing the player related data, //map->quit handles extra specific data which is related to quitting normally @@ -6012,6 +6014,7 @@ int do_final(void) { elemental->final(); map->list_final(); vending->final(); + rodex->final(); HPM_map_do_final(); @@ -6208,6 +6211,7 @@ void map_load_defaults(void) { path_defaults(); quest_defaults(); npc_chat_defaults(); + rodex_defaults(); } /** * --run-once handler @@ -6525,6 +6529,7 @@ int do_init(int argc, char *argv[]) bg->init(minimal); duel->init(minimal); vending->init(minimal); + rodex->init(minimal); if (map->scriptcheck) { bool failed = map->extra_scripts_count > 0 ? false : true; |