diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-28 23:12:01 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-28 23:12:01 +0800 |
commit | 4ba1777ffaa8cacae3651c0082f538c92b3a9bbb (patch) | |
tree | 378c17c3ab4938be378602fc1ca2307497238c3a | |
parent | 101c393d1446321854816ac187bd8ba7857a17a8 (diff) | |
download | pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.tar pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.tar.gz pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.tar.bz2 pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.tar.lz pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.tar.xz pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.tar.zst pttbbs-4ba1777ffaa8cacae3651c0082f538c92b3a9bbb.zip |
Gomoku rule fix: lifting a ban by another ban (以禁解禁)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4383 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/gomo.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c index 5507913f..d68a61eb 100644 --- a/mbbsd/gomo.c +++ b/mbbsd/gomo.c @@ -159,8 +159,10 @@ dirchk(board_t ku, int x, int y, int color, int limit, int dx, int dy) nx = x + (le > ri ? 1 : -1) * tmp * dx; ny = y + (le > ri ? 1 : -1) * tmp * dy; - if ((dirchk(ku, nx, ny, color, 0, dx, dy) == 0x06) && - (chkwin(getstyle(ku, nx, ny, color, limit), limit) >= 0)) + if ((dirchk(ku, nx, ny, color, limit, dx, dy) == 0x06) && + (chkwin( + getstyle(ku, nx, ny, color, limit), + limit) != CHESS_RESULT_LOST)) break; } } |