diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-30 00:56:04 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-30 00:56:04 +0800 |
commit | 65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da (patch) | |
tree | 9f2593faf49d2b39726feb59f6fea98b740c1cec | |
parent | afc85484bb5861b1bddcb879ecd46df0e870c25a (diff) | |
download | pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.tar pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.tar.gz pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.tar.bz2 pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.tar.lz pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.tar.xz pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.tar.zst pttbbs-65a87f92ee0f07b3de7e41fbc3d72dcd0caed9da.zip |
fix: gamble didn't display correct time, and wrong in description
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5181 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/common/bbs/log.c | 2 | ||||
-rw-r--r-- | pttbbs/include/cmbbs.h | 2 | ||||
-rw-r--r-- | pttbbs/mbbsd/cal.c | 2 | ||||
-rw-r--r-- | pttbbs/util/openticket.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/pttbbs/common/bbs/log.c b/pttbbs/common/bbs/log.c index bcf1c7d3..0f7c6ae3 100644 --- a/pttbbs/common/bbs/log.c +++ b/pttbbs/common/bbs/log.c @@ -5,7 +5,7 @@ int log_payment(const char *filename, int money, int oldm, int newm, - const char *reason) + const char *reason, time4_t now) { #if defined(USE_RECENTPAY) || defined(LOG_RECENTPAY) return log_filef(filename, diff --git a/pttbbs/include/cmbbs.h b/pttbbs/include/cmbbs.h index 697b8be7..3b501138 100644 --- a/pttbbs/include/cmbbs.h +++ b/pttbbs/include/cmbbs.h @@ -40,7 +40,7 @@ extern int stampfile_u(char *fpath, fileheader_t *fh); // does not zero existing /* log.c */ extern int log_payment(const char *filename, int money, int oldm, int newm, - const char *reason); + const char *reason, time4_t now); /* cache.c */ #define search_ulist(uid) search_ulistn(uid, 1) diff --git a/pttbbs/mbbsd/cal.c b/pttbbs/mbbsd/cal.c index c3e0bc51..860addce 100644 --- a/pttbbs/mbbsd/cal.c +++ b/pttbbs/mbbsd/cal.c @@ -82,7 +82,7 @@ do_pay(int uid, int money, const char *item, const char *reason) sethomefile(buf, userid, FN_RECENTPAY); rotate_text_logfile(buf, SZ_RECENTPAY, 0.2); syncnow(); - log_payment(buf, money, oldm, newm, reason); + log_payment(buf, money, oldm, newm, reason, now); } return newm; diff --git a/pttbbs/util/openticket.c b/pttbbs/util/openticket.c index 5b3147e3..d8161551 100644 --- a/pttbbs/util/openticket.c +++ b/pttbbs/util/openticket.c @@ -109,7 +109,7 @@ int main(int argc, char **argv) char reason[256]; sprintf(reason, "½ä½L¤¤¼ú (%s x %d)", betname[mybet], num); sethomefile(genbuf, userid, FN_RECENTPAY); - log_payment(genbuf, money * num, oldm, newm, reason); + log_payment(genbuf, -money * num, oldm, newm, reason, now); } sethomepath(genbuf, userid); stampfile(genbuf, &mymail); |