summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/pttstruct.h3
-rw-r--r--mbbsd/admin.c2
-rw-r--r--mbbsd/gomo.c2
-rw-r--r--util/chesscountry.c4
4 files changed, 8 insertions, 3 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 22cc64a1..3d794166 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -228,7 +228,8 @@ typedef struct boardheader_t {
#define CHESSCODE_NONE 0
#define CHESSCODE_FIVE 1
#define CHESSCODE_CCHESS 2
-#define CHESSCODE_MAX 2
+#define CHESSCODE_GO 3
+#define CHESSCODE_MAX 3
#endif /* defined(CHESSCOUNTRY) */
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 2d908e0d..03dda722 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -563,7 +563,7 @@ 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)象棋", ans,
+ if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋 (3) 圍棋", ans,
sizeof(ans), LCECHO, genbuf)){
newbh.chesscountry = atoi(ans);
if (newbh.chesscountry > CHESSCODE_MAX ||
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 00d7c219..521fdb76 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -47,7 +47,7 @@ ChessActions gomo_actions = {
&gomo_prepare_play,
&gomo_select,
(void (*)(ChessInfo*, const void*)) &gomo_prepare_step,
- (int (*)(void*, const void*)) &gomo_apply_step,
+ (ChessGameResult (*)(void*, const void*)) &gomo_apply_step,
(void (*)(ChessInfo*, const void*)) &gomo_drawstep,
&gomo_gameend,
&gomo_genlog
diff --git a/util/chesscountry.c b/util/chesscountry.c
index 478db07f..856d4afd 100644
--- a/util/chesscountry.c
+++ b/util/chesscountry.c
@@ -74,6 +74,10 @@ main(void)
photo_fname = "photo_cchess";
chess_name = "象棋";
break;
+ case CHESSCODE_GO:
+ photo_fname = "photo_go";
+ chess_name = "圍棋";
+ break;
default:
continue;
}