diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-10-09 01:57:04 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-10-09 01:57:04 +0000 |
commit | 46afaed6555abf5cfdb979e7b1e0b3a619ee36ae (patch) | |
tree | 825b8e97cad9ee3c416d327c1e5f54b1ba1204d3 /src/map/log.c | |
parent | 5ab81c08011abb8af9a1001e7835c72c6de96142 (diff) | |
download | hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.tar.gz hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.tar.bz2 hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.tar.xz hercules-46afaed6555abf5cfdb979e7b1e0b3a619ee36ae.zip |
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
Diffstat (limited to 'src/map/log.c')
-rw-r--r-- | src/map/log.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 ) |