summaryrefslogtreecommitdiffstats
path: root/mbbsd/chess.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-08 04:30:32 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-08 04:30:32 +0800
commita654d6a45aeba35690e210cf61dc1d0ecde2ebde (patch)
treed357df996e327c612dfcbf5ee98e44a615878873 /mbbsd/chess.c
parentf9f4c71a8beec3d7c2931a266d3df20d00abaeba (diff)
downloadpttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.tar
pttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.tar.gz
pttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.tar.bz2
pttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.tar.lz
pttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.tar.xz
pttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.tar.zst
pttbbs-a654d6a45aeba35690e210cf61dc1d0ecde2ebde.zip
Fix chess watching backward one step bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3003 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chess.c')
-rw-r--r--mbbsd/chess.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/chess.c b/mbbsd/chess.c
index c59f4099..2f7aaa96 100644
--- a/mbbsd/chess.c
+++ b/mbbsd/chess.c
@@ -473,7 +473,8 @@ ChessPlayFuncWatch(ChessInfo* info)
info->actions->init_board(info, info->board);
info->current_step = 0;
- ChessReplayUntil(info, current - 1);
+ if (current > 1)
+ ChessReplayUntil(info, current - 1);
ChessRedraw(info);
}
break;