]> git.sesse.net Git - stockfish/blobdiff - src/material.cpp
Introduce scale factor in pawn evaluation
[stockfish] / src / material.cpp
index 65c8c86292df1c2e12bac5336f01f8820337ce4a..f0ee5f682d02cada44957745849684613f3e4196 100644 (file)
@@ -304,7 +304,7 @@ MaterialInfo* MaterialInfoTable::get_material_info(const Position& pos) {
     {
         if (   pos.non_pawn_material(c) == pos.non_pawn_material(opposite_color(c))
             || pos.non_pawn_material(c) < RookValueMidgame)
     {
         if (   pos.non_pawn_material(c) == pos.non_pawn_material(opposite_color(c))
             || pos.non_pawn_material(c) < RookValueMidgame)
-            mi->factor[c] = 0;
+            mi->factor[c] = SCALE_FACTOR_ZERO;
         else
         {
             switch (pos.piece_count(c, BISHOP)) {
         else
         {
             switch (pos.piece_count(c, BISHOP)) {