diff options
-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 |