- int p = (ss-1)->statScore;
- int malus = p > 0 ? (p + 5000) / 1024 :
- p < 0 ? (p - 5000) / 1024 : 0;
+ if ((ss-1)->currentMove != MOVE_NULL)
+ {
+ int p = (ss-1)->statScore;
+ int bonus = p > 0 ? (-p - 2500) / 512 :
+ p < 0 ? (-p + 2500) / 512 : 0;