summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/pttstruct.h3
-rw-r--r--mbbsd/admin.c5
-rw-r--r--util/chesscountry.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 1c7df5d8..74c61199 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -230,7 +230,8 @@ typedef struct boardheader_t { /* 256 bytes */
#define CHESSCODE_FIVE 1
#define CHESSCODE_CCHESS 2
#define CHESSCODE_GO 3
-#define CHESSCODE_MAX 3
+#define CHESSCODE_REVERSI 4
+#define CHESSCODE_MAX 4
#endif /* defined(CHESSCOUNTRY) */
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 4706f999..5629c52d 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -639,8 +639,9 @@ m_mod_board(char *bname)
#ifdef CHESSCOUNTRY
if (HasUserPerm(PERM_SYSOP)) {
snprintf(genbuf, sizeof(genbuf), "%d", bh.chesscountry);
- if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋 (3)圍棋", ans,
- sizeof(ans), NUMECHO, genbuf)){
+ if (getdata_str(16, 0,
+ "設定棋國 (0)無 (1)五子棋 (2)象棋 (3)圍棋 (4) 黑白棋",
+ ans, sizeof(ans), NUMECHO, genbuf)){
newbh.chesscountry = atoi(ans);
if (newbh.chesscountry > CHESSCODE_MAX ||
newbh.chesscountry < CHESSCODE_NONE)
diff --git a/util/chesscountry.c b/util/chesscountry.c
index 51f0baa3..c3665e5d 100644
--- a/util/chesscountry.c
+++ b/util/chesscountry.c
@@ -78,6 +78,10 @@ main(void)
photo_fname = "photo_go";
chess_name = "圍棋";
break;
+ case CHESSCODE_REVERSI:
+ photo_fname = "photo_reversi";
+ chess_name = "黑白棋";
+ break;
default:
continue;
}