Fix WB promotion popup
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 3 Jan 2011 10:57:23 +0000 (11:57 +0100)
committerArun Persaud <arun@nubati.net>
Tue, 11 Jan 2011 05:22:03 +0000 (21:22 -0800)
commit30c1dcad0772e901bc944d3d7cf17db4f2a10fa0
treec104ed9d625bd7354c18a1af800d786a59d87789
parent412a8de0295bf9cef6b02a6809dfda966cacd9d4
Fix WB promotion popup

The promotion popup did not work properly in variants where black did
not use the pieces that white wanted to promote to. Now the character
for the selected piece is taken from the piece encodings of the side to
move. In addition, selection of undefined pieces is ignored.
winboard/winboard.c