summaryrefslogtreecommitdiffstats
path: root/mbbsd/gomo.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-31 10:52:32 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-31 10:52:32 +0800
commit389688bf4c143e2dc9d69613fdf4f653af7d0332 (patch)
tree4a1b9ffb01c7c127ccc14b4bcc56d35adab8b7f4 /mbbsd/gomo.c
parent68a3c5c7677ca92bf22093fbfd123d4b0566a1a2 (diff)
downloadpttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.gz
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.bz2
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.lz
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.xz
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.tar.zst
pttbbs-389688bf4c143e2dc9d69613fdf4f653af7d0332.zip
refining
cuser & passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gomo.c')
-rw-r--r--mbbsd/gomo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 23dc9584..91863888 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -327,7 +327,7 @@ gomoku(int fd)
cuser->five_lose++;
/* 一進來先加一場敗場, 贏了後再扣回去, 避免快輸了惡意斷線 */
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
add_io(fd, 0);
@@ -357,7 +357,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_win++;
my->five_win++;
- // passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
mv.x = mv.y = -2;
send(fd, &mv, sizeof(Horder_t), 0);
mv = *(v - 1);
@@ -377,7 +377,7 @@ gomoku(int fd)
if (ch == 'q') {
if (countgomo(pool) < 10) {
cuser->five_lose--;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
}
send(fd, '\0', 1, 0);
break;
@@ -405,7 +405,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_tie++;
my->five_tie++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
mv.x = mv.y = -2;
send(fd, &mv, sizeof(Horder_t), 0);
mv = *(v - 1);
@@ -422,7 +422,7 @@ gomoku(int fd)
cuser->five_win++;
my->five_win++;
}
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
outmsg("對方認輸了!!");
break;
} else {
@@ -435,7 +435,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_tie++;
my->five_tie++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
break;
} else {
hewantpass = 1;
@@ -467,7 +467,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_win++;
my->five_win++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
} else
my->five_lose++;
break;
@@ -500,7 +500,7 @@ gomoku(int fd)
cuser->five_lose--;
cuser->five_win++;
my->five_win++;
-// passwd_update(usernum, &cuser);
+ passwd_update(usernum, cuser);
} else
my->five_lose++;
break;