Fix deferral on sweep promotions
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 4 May 2016 13:18:34 +0000 (15:18 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:34 +0000 (14:06 +0200)
commit83fc252bbb9a3fede1112a2bbffd386293dc8575
treedb0a230bd98e3daf674c320749b83bf3109ff507
parent09822b16d43fe8f9c3ef6a22360b4448efc73770
Fix deferral on sweep promotions

When a sweep in the to-square due to a highlight-induced promotion
had left the original piece as choice, the piece would be considered
to promote to itself (i.e. the move would get the promoChar for its
piece type), rather than to not promote at all. Some engines choked
on this (HaChu). Now such a move is not considered a promotion.
backend.c