code in Toge1.0 beta2:
if (op[colour] >= -22) // Thomas king safe?
op[colour] -= (attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256;
else
op[colour] -= ((attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256) * 1;
It seems to me that
op[colour] -= (attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256; from fruit's code has the same effect and I do not understand the reason for the change from fruit's code.
Uri