diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 14:29:17 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-19 14:29:17 +0800 |
commit | 2caf4fa2f361422e19accec2818c3d588f4f7e2a (patch) | |
tree | 7fb5c9fe4644c88bd91993a3cb6cf9ce7e3a67c3 | |
parent | 49a3028e5aec3d5df6f52d42c4a8e849e3118a8d (diff) | |
download | pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.tar pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.tar.gz pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.tar.bz2 pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.tar.lz pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.tar.xz pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.tar.zst pttbbs-2caf4fa2f361422e19accec2818c3d588f4f7e2a.zip |
* don't log useless etc/othello.secret
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4664 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/othello.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pttbbs/mbbsd/othello.c b/pttbbs/mbbsd/othello.c index 70fd0961..27e385dc 100644 --- a/pttbbs/mbbsd/othello.c +++ b/pttbbs/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) |