projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Allow use of second-row pieces for non-promoted in drop games
[xboard.git]
/
moves.c
diff --git
a/moves.c
b/moves.c
index
bcaef30
..
015f5f2
100644
(file)
--- a/
moves.c
+++ b/
moves.c
@@
-135,7
+135,7
@@
PieceToNumber (ChessSquare p) /* [HGM] holdings: count piece type, ignoring non
int i=0;
ChessSquare start = (int)p >= (int)BlackPawn ? BlackPawn : WhitePawn;
- while(start++ != p) if(pieceToChar[(int)start-1] != '.') i++;
+ while(start++ != p) if(pieceToChar[start-1] != '.' && pieceToChar[start-1] != '+') i++;
return i;
}