From 11351a67d9fb73925909094fea5b7e791507b802 Mon Sep 17 00:00:00 2001 From: scw Date: Sat, 8 Jan 2005 15:56:26 +0000 Subject: Wrong output for chess country query. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2390 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mbbsd/user.c b/mbbsd/user.c index b7308b60..e27bbae9 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -760,6 +760,7 @@ showplans(char *uid) { char photo[6][256]; int kingdom_bid = 0; + int win = 0, lost = 0; move(7, 0); while (i < 12 && fgets(genbuf, 256, fp)) @@ -774,6 +775,15 @@ showplans(char *uid) i++; } + if (user_query_mode == 0) { + win = currutmp->five_win; + lost = currutmp->five_lose; + } else if(user_query_mode == 1) { + win = currutmp->chc_win; + lost = currutmp->chc_lose; + } + prints("%s <總共戰績> %d 勝 %d 敗\n", photo[5], win, lost); + /* 棋國國徽 */ setapath(genbuf, bcache[kingdom_bid - 1].brdname); -- cgit v1.2.3