From a369f1276f7a3f9f10dc6878d883e4cdd14ee132 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jul 2016 19:13:59 +0300 Subject: Remove hooking from function status_readdb_scconfig. Now it went to hercules. --- src/emap/init.c | 1 - src/emap/status.c | 21 --------------------- src/emap/status.h | 5 ----- 3 files changed, 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 -- cgit v1.2.3-60-g2f50