projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a6215f0
)
fix for edit-position "moves" being sent by XBoard to the engine
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sun, 27 Sep 2009 19:27:44 +0000 (12:27 -0700)
committer
Arun Persaud
<arun@nubati.net>
Wed, 30 Sep 2009 05:21:46 +0000 (22:21 -0700)
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
912acb2
..
47c7687
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-5441,7
+5441,9
@@
UserMoveEvent(fromX, fromY, toX, toY, promoChar)
*/
ChessMove moveType = UserMoveTest(fromX, fromY, toX, toY, promoChar);
if(appData.debugMode) fprintf(debugFP, "moveType 4 = %d, promochar = %x\n", moveType, promoChar);
- if(moveType != ImpossibleMove)
+ if(moveType == AmbiguousMove)
+ DrawPosition(FALSE, boards[currentMove]);
+ else if(moveType != ImpossibleMove)
FinishMove(moveType, fromX, fromY, toX, toY, promoChar);
}