From 46afaed6555abf5cfdb979e7b1e0b3a619ee36ae Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Sat, 9 Oct 2010 01:57:04 +0000 Subject: Replaced all nullpo_retr() calls which returned 0 with nullpo_ret() calls. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14414 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/log.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/map/log.c') diff --git a/src/map/log.c b/src/map/log.c index 5cafcf719..474a6bb96 100644 --- a/src/map/log.c +++ b/src/map/log.c @@ -63,7 +63,7 @@ int log_branch(struct map_session_data *sd) if(!log_config.enable_logs) return 0; - nullpo_retr(0, sd); + nullpo_ret(sd); #ifndef TXT_ONLY if( log_config.sql_logs ) @@ -98,7 +98,7 @@ int log_branch(struct map_session_data *sd) int log_pick_pc(struct map_session_data *sd, const char *type, int nameid, int amount, struct item *itm) { - nullpo_retr(0, sd); + nullpo_ret(sd); if (!should_log_item(log_config.filter, nameid, amount)) return 0; //we skip logging this item set - it doesn't meet our logging conditions [Lupus] @@ -148,7 +148,7 @@ int log_pick_mob(struct mob_data *md, const char *type, int nameid, int amount, { char* mapname; - nullpo_retr(0, md); + nullpo_ret(md); if (!should_log_item(log_config.filter, nameid, amount)) return 0; //we skip logging this item set - it doesn't meet our logging conditions [Lupus] @@ -203,7 +203,7 @@ int log_zeny(struct map_session_data *sd, char *type, struct map_session_data *s if(!log_config.enable_logs || (log_config.zeny != 1 && abs(amount) < log_config.zeny)) return 0; - nullpo_retr(0, sd); + nullpo_ret(sd); #ifndef TXT_ONLY if( log_config.sql_logs ) @@ -235,7 +235,7 @@ int log_mvpdrop(struct map_session_data *sd, int monster_id, int *log_mvp) if(!log_config.enable_logs) return 0; - nullpo_retr(0, sd); + nullpo_ret(sd); #ifndef TXT_ONLY if( log_config.sql_logs ) @@ -268,7 +268,7 @@ int log_atcommand(struct map_session_data* sd, const char* message) if(!log_config.enable_logs) return 0; - nullpo_retr(0, sd); + nullpo_ret(sd); #ifndef TXT_ONLY if( log_config.sql_logs ) @@ -307,7 +307,7 @@ int log_npc(struct map_session_data* sd, const char* message) if(!log_config.enable_logs) return 0; - nullpo_retr(0, sd); + nullpo_ret(sd); #ifndef TXT_ONLY if( log_config.sql_logs ) -- cgit v1.2.3-60-g2f50