diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 22:55:34 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 22:55:34 +0800 |
commit | 096cfe7716399ae0d564dac9e793e9e8768029dc (patch) | |
tree | a4ad0cea46ad9f6eb956dedf238ec8af93b0c5c4 | |
parent | cc8039cccc2c5f3b35530b739db9c09245763b83 (diff) | |
download | pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.tar pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.tar.gz pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.tar.bz2 pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.tar.lz pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.tar.xz pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.tar.zst pttbbs-096cfe7716399ae0d564dac9e793e9e8768029dc.zip |
gamble
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@381 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 44442a45..cc5fd86a 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.61 2002/06/26 08:47:51 ptt Exp $ */ +/* $Id: bbs.c,v 1.62 2002/06/29 14:55:34 ptt Exp $ */ #include "bbs.h" static void mail_by_link(char* owner, char* title, char* path) { @@ -996,6 +996,7 @@ static int hold_gamble(int ent, fileheader_t *fhdr, char *direct) { { bp->endgamble= 0; substitute_record(fn_board, bp, sizeof(boardheader_t), currbid); + } return FULLUPDATE; } @@ -1042,10 +1043,13 @@ static int hold_gamble(int ent, fileheader_t *fhdr, char *direct) { substitute_record(fn_board, bp, sizeof(boardheader_t), currbid); } move(6,0); - sprintf(genbuf,"請到 %s 板 按'f'參與賭博!\n\n一張 %d Ptt幣, 這是%s的賭博\n", +sprintf(genbuf,"請到 %s 板 按'f'參與賭博!\n\n一張 %d Ptt幣, 這是%s的賭博\n%s%s", currboard, i, i<100 ? "小賭式" : i<500 ? "平民級": - i<1000 ?"貴族級" : i<5000 ?"富豪級" : "傾家蕩產"); + i<1000 ?"貴族級" : i<5000 ?"富豪級" : "傾家蕩產", + bp->endgamble?"賭盤結束時間: ":"", + bp->endgamble?Cdate(&bp->endgamble):"" + ); strcat(msg, genbuf); prints("請依次輸入彩票名稱, 需提供2~8項. (未滿八項, 輸入直接按enter)\n"); for(i=0; i<8; i++) |