projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1f0538d
)
Fix illegal-drop fix
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Fri, 20 Feb 2015 13:07:40 +0000 (14:07 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 7 May 2015 18:53:32 +0000 (20:53 +0200)
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
3730e07
..
e4e3550
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-5528,7
+5528,7
@@
ParseOneMove (char *move, int moveNum, ChessMove *moveType, int *fromX, int *fro
/* End of code added by Tord */
case IllegalMove: /* bug or odd chess variant */
if(currentMoveString[1] == '@') { // illegal drop
- *fromX = *moveType == WhiteOnMove(moveNum) ?
+ *fromX = WhiteOnMove(moveNum) ?
(int) CharToPiece(ToUpper(currentMoveString[0])) :
(int) CharToPiece(ToLower(currentMoveString[0]));
goto drop;