diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-25 23:37:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-31 23:07:45 +0300 |
commit | 0cb157c95e3c3af13af1f1f4294bf38c414fc7ab (patch) | |
tree | c68b70c8d0e81bc826e1c2c4684d0852335e1f3c /src/map/log.c | |
parent | f0d5be2db32afc7b4382276ffa3c60a1354bea8e (diff) | |
download | hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.gz hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.bz2 hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.xz hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.zip |
Remove useless checks.
Diffstat (limited to 'src/map/log.c')
-rw-r--r-- | src/map/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/log.c b/src/map/log.c index 92956fa67..9dcf1f359 100644 --- a/src/map/log.c +++ b/src/map/log.c @@ -134,7 +134,7 @@ void log_pick_sub_sql(int id, int16 m, e_log_pick_type type, int amount, struct LOG_QUERY " INTO `%s` (`time`, `char_id`, `type`, `nameid`, `amount`, `refine`, `card0`, `card1`, `card2`, `card3`, `map`, `unique_id`) " "VALUES (NOW(), '%d', '%c', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%s', '%"PRIu64"')", logs->config.log_pick, id, logs->picktype2char(type), itm->nameid, amount, itm->refine, itm->card[0], itm->card[1], itm->card[2], itm->card[3], - map->list[m].name?map->list[m].name:"", itm->unique_id) + map->list[m].name, itm->unique_id) ) { Sql_ShowDebug(logs->mysql_handle); return; @@ -151,7 +151,7 @@ void log_pick_sub_txt(int id, int16 m, e_log_pick_type type, int amount, struct strftime(timestring, sizeof(timestring), "%m/%d/%Y %H:%M:%S", localtime(&curtime)); fprintf(logfp,"%s - %d\t%c\t%d,%d,%d,%d,%d,%d,%d,%s,'%"PRIu64"'\n", timestring, id, logs->picktype2char(type), itm->nameid, amount, itm->refine, itm->card[0], itm->card[1], itm->card[2], itm->card[3], - map->list[m].name?map->list[m].name:"", itm->unique_id); + map->list[m].name, itm->unique_id); fclose(logfp); } /// logs item transactions (generic) |