Allow use of second-row pieces for non-promoted in drop games
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 28 Sep 2014 08:09:17 +0000 (10:09 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 28 Sep 2014 20:14:28 +0000 (22:14 +0200)
commitc172f0cc52bcf9d4433149de82290c2941136180
tree730f81030fa7da57ccd93900a02b8c51c55332ec
parent94d2b2b896207fac048806e05c8a114297b1a513
Allow use of second-row pieces for non-promoted in drop games

Second-row pieces were automatically demoted on capture, but this
should really happen only when the piece-to-char table says it is a
shogi-promoted piece (assigned a '+' there). Pieces assigned a letter
should really stay themselves.
 PieceToNumber had to be adapted to skip '+' pieces in order to count
correctly for second-row pieces, as did the code in UserMoveEvent() that
mapped the from-square onto the piece type. (Why do we do that anyway?
The piece type was displayed on the from-square!)
backend.c
moves.c