diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-10 19:13:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-10 19:13:59 +0300 |
commit | a369f1276f7a3f9f10dc6878d883e4cdd14ee132 (patch) | |
tree | b7dfb5f04b7ebe87549b84e413bf8dc5b72ea59d | |
parent | 6a5474b593cd47964e0999f837c1ac63538992b7 (diff) | |
download | evol-hercules-s20160713.tar.gz evol-hercules-s20160713.tar.bz2 evol-hercules-s20160713.tar.xz evol-hercules-s20160713.zip |
Remove hooking from function status_readdb_scconfig. Now it went to hercules.s20160717s20160713s20160712
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/status.c | 21 | ||||
-rw-r--r-- | src/emap/status.h | 5 |
3 files changed, 0 insertions, 27 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 0c5707e..a8a8ecd 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -277,7 +277,6 @@ HPExport void plugin_init (void) addHookPost(status, calc_fix_aspd, estatus_calc_fix_aspd_post); addHookPost(status, change_start, estatus_change_start_post); addHookPost(status, change_end_, estatus_change_end__post); - addHookPost(status, readdb_scconfig, estatus_readdb_scconfig_post); addHookPost(map, addflooritem, emap_addflooritem_post); addHookPost(mob, read_db_mode_sub, emob_read_db_mode_sub_post); addHookPost(npc, get_viewdata, enpc_get_viewdata_post); diff --git a/src/emap/status.c b/src/emap/status.c index f58cbea..f6f0a51 100644 --- a/src/emap/status.c +++ b/src/emap/status.c @@ -246,24 +246,3 @@ int estatus_change_end__post(int retVal, */ return retVal; } - -bool estatus_readdb_scconfig_post(bool retVal, - char* fields[], - int columns __attribute__ ((unused)), - int current __attribute__ ((unused))) -{ - if (retVal == true) - { - char *type = fields[0]; - int val = 0; - script->get_constant(type, &val); - // own field in sc_config.txt - if (status->dbs->sc_conf[val] & 0x100) - { - // allow show this sc always - status->dbs->DisplayType[val] = true; - } - } - - return retVal; -} diff --git a/src/emap/status.h b/src/emap/status.h index b8d77f5..0f78346 100644 --- a/src/emap/status.h +++ b/src/emap/status.h @@ -44,9 +44,4 @@ int estatus_change_end__post(int retVal, enum sc_type type, int tid, const char* file, int line); -bool estatus_readdb_scconfig_post(bool retVal, - char* fields[], - int columns, - int current); - #endif // EVOL_MAP_STATUS |