summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-08 23:56:26 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-08 23:56:26 +0800
commit11351a67d9fb73925909094fea5b7e791507b802 (patch)
treed3cbde07f7c7c0d33b515e5d36dda8d1bdefe98b /mbbsd
parenta9e9d8e71053bf943eff2084b21c18a62d94f89c (diff)
downloadpttbbs-11351a67d9fb73925909094fea5b7e791507b802.tar
pttbbs-11351a67d9fb73925909094fea5b7e791507b802.tar.gz
pttbbs-11351a67d9fb73925909094fea5b7e791507b802.tar.bz2
pttbbs-11351a67d9fb73925909094fea5b7e791507b802.tar.lz
pttbbs-11351a67d9fb73925909094fea5b7e791507b802.tar.xz
pttbbs-11351a67d9fb73925909094fea5b7e791507b802.tar.zst
pttbbs-11351a67d9fb73925909094fea5b7e791507b802.zip
Wrong output for chess country query.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2390 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c10
1 files changed, 10 insertions, 0 deletions
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);