summaryrefslogtreecommitdiffstats
path: root/mbbsd/othello.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-19 14:29:17 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-19 14:29:17 +0800
commit6b189c0c1aca68829f07bc11e2740af5dd617c5f (patch)
treebfd18ebf1ed37a7970f49b30820470ef3c28709a /mbbsd/othello.c
parent0f07b301a9f61f95172e8699dd071cff917c8f94 (diff)
downloadpttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.tar
pttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.tar.gz
pttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.tar.bz2
pttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.tar.lz
pttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.tar.xz
pttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.tar.zst
pttbbs-6b189c0c1aca68829f07bc11e2740af5dd617c5f.zip
* don't log useless etc/othello.secret
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/othello.c')
-rw-r--r--mbbsd/othello.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/mbbsd/othello.c b/mbbsd/othello.c
index 70fd0961..27e385dc 100644
--- a/mbbsd/othello.c
+++ b/mbbsd/othello.c
@@ -2,7 +2,6 @@
#include "bbs.h"
#define LOGFILE "etc/othello.log"
-#define SECRET "etc/othello.secret"
#define NR_TABLE 2
#define true 1
@@ -211,21 +210,13 @@ eat(int x, int y, int color, char chessboard[][10])
static void
end_of_game(struct OthelloData *od, int quit)
{
- FILE *fp, *fp1;
+ FILE *fp;
char *opponent[] = {"", "CD-65", "", "嬰兒", "小孩", "", "大人", "專家"};
move(STARTX - 1, 30);
outs(" ");
move(22, 35);
fp = fopen(LOGFILE, "a");
- if (!quit) {
- fp1 = fopen(SECRET, "a");
- if (fp1) {
- fprintf(fp1, "%d,%d,%s,%02d,%02d\n", od->think, od->which_table,
- cuser.userid, od->number[0], od->number[1]);
- fclose(fp1);
- }
- }
if (quit) {
if (od->number[0] == 2 && od->number[1] == 2) {
if (fp)