From eaa868e5c10158c2d8ca7fb623b9f522e495a829 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 16 Nov 2002 13:41:07 +0000 Subject: =?UTF-8?q?show=20=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD?= =?UTF-8?q?=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD?= =?UTF-8?q?=20in=20user=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@575 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/chc_play.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mbbsd/chc_play.c') diff --git a/mbbsd/chc_play.c b/mbbsd/chc_play.c index 74a9aadb..08eead20 100644 --- a/mbbsd/chc_play.c +++ b/mbbsd/chc_play.c @@ -1,4 +1,4 @@ -/* $Id: chc_play.c,v 1.6 2002/07/21 09:26:02 in2 Exp $ */ +/* $Id: chc_play.c,v 1.7 2002/11/16 13:41:07 kcwu Exp $ */ #include "bbs.h" typedef int (*play_func_t) (int, board_t, board_t); @@ -201,12 +201,15 @@ mainloop(int s, board_t board) if (endgame == 1) { strlcpy(chc_warnmsg, "對方認輸了!", sizeof(chc_warnmsg)); cuser.chc_win++; + currutmp->chc_win++; } else if (endgame == 2) { strlcpy(chc_warnmsg, "你認輸了!", sizeof(chc_warnmsg)); cuser.chc_lose++; + currutmp->chc_lose++; } else { strlcpy(chc_warnmsg, "和棋", sizeof(chc_warnmsg)); cuser.chc_tie++; + currutmp->chc_tie++; } cuser.chc_lose--; passwd_update(usernum, &cuser); -- cgit v1.2.3