Use '2'-bit of range field to flag hop-friend
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 3 Oct 2014 08:22:51 +0000 (10:22 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 3 Oct 2014 08:30:11 +0000 (10:30 +0200)
commiteaf83ea88d9567c38081aae39be668676edce3e2
tree16c3d12a56aa7126acabcad607fb398488d52444
parent3f3fc8b97c2ae601d6d437647561be4d954a4fb8
Use '2'-bit of range field to flag hop-friend

The possibility to 'collide' from the hop platform by first stepping
back a number of squares before starting the second leg is now restricted
to one square, as indicated by the '1'-bit of the range field, for hoppers.
The '2' bit now flags that only a friendly piece can be used as platform;
an enemy counts as empty in the hop test, but because there is an actual
piece there it will terminate the ray (as no hop will reset that then).
fairymax.c