Bugfix: KRK was not classified as KNOWN_WIN
authorJoona Kiiski <joona.kiiski@gmail.com>
Wed, 17 Jun 2009 08:07:16 +0000 (11:07 +0300)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 18 Jun 2009 06:35:24 +0000 (07:35 +0100)
commit46c0bdb74f104aa8a293c660689f84aae3ca75b3
tree46cb024ee1f8b6740991dd23eb3bb17cd98e8a52
parent8225fdd5bb6f74172ba0307d7db12c5ce8416eea
Bugfix: KRK was not classified as KNOWN_WIN

Problem is that npMaterial is compared to _endgame_ value
of rook, although npMaterial is always (also in endgame!)
calculated using _middlegame_ values.

Bug was hidden as long as Rook middlegame
and endgame values were same.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/material.cpp