projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ba08fd2
)
Fix spurious mate test in Edit Game mode
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 16 Jan 2011 20:44:26 +0000 (21:44 +0100)
committer
Arun Persaud
<arun@nubati.net>
Sat, 29 Jan 2011 02:15:59 +0000 (18:15 -0800)
When entering a game, it was terminated by the mate test even when
legality checking was switched off (so that mates might not be reliably
recognized). The mate test is now made dependent on legality testing.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
26b7d80
..
938e27f
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-6243,6
+6243,7
@@
FinishMove(moveType, fromX, fromY, toX, toY, promoChar)
switch (gameMode) {
case EditGame:
+ if(appData.testLegality)
switch (MateTest(boards[currentMove], PosFlags(currentMove)) ) {
case MT_NONE:
case MT_CHECK: