Fix multi-leg promotions
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sat, 7 May 2016 21:33:35 +0000 (23:33 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:35 +0000 (14:06 +0200)
commit71f49a81c2208157eef57d989aaedbbe021927a5
tree8d2b8cb5e1e9ee580ea4e30decb7a9fcfe057434
parent95b8c00f4614ca7c7a1fa6b2e176d7d750c79ceb
Fix multi-leg promotions

Two-leg promotions were sent as gibberish to the engine (and thus
rejected). It was also pretty annoying that XBoard's own idea of
what should be promotions was still applied even when highlighting
denied promotions (because the zone was different than assumed, or
a promotion-on-entry rule applies). Now the legality markers from
the GUI move generator are different from the red and yellow markers
from an engine highlight command, and the latter are taken as a denial
of promotion, and will suppress it.
backend.c