From 0a98391b9dba8f27a0c285fcdafc564d93a37e23 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 19 Oct 2006 21:25:56 +0000 Subject: - Cleaned up the log.c file. - Splitted log_pick into log_pick_pc and log_pick_mob to avoid ugly type-casting. - Fixed log_chat not recording anything if the server is compiled in SQL mode and sql_logs is turned off (it should then record to a plain txt file) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9017 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/log.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/log.h') diff --git a/src/map/log.h b/src/map/log.h index 05de892f4..32f3853ef 100644 --- a/src/map/log.h +++ b/src/map/log.h @@ -13,7 +13,8 @@ extern char db_server_logdb[32]; #endif //NOT TXT_ONLY //New logs -int log_pick(struct map_session_data *sd, char *type, int mob_id, int nameid, int amount, struct item *itm); +int log_pick_pc(struct map_session_data *sd, const char *type, int nameid, int amount, struct item *itm); +int log_pick_mob(struct mob_data *md, const char *type, int nameid, int amount, struct item *itm); int log_zeny(struct map_session_data *sd, char *type, struct map_session_data *src_sd, int amount); int log_npc(struct map_session_data *sd, const char *message); -- cgit v1.2.3-60-g2f50