Further simplify previous patch

Use a single XOR instead of NEGATE + AND

No functional change.
Merge remote-tracking branch 'upstream/master'
Merge branch 'master' into pawn_dist
increase bonus to 20