]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Simplify connected pawn scoring
[stockfish] / src / evaluate.cpp
index a7a091abd154d711a127909f8c0705312dc2713d..9521cd100282487f44ba3926f01afde124797bc6 100644 (file)
@@ -353,7 +353,7 @@ namespace {
 
             // Bonus for rook on an open or semi-open file
             if (pos.is_on_semiopen_file(Us, s))
-                score += RookOnFile[bool(pos.is_on_semiopen_file(Them, s))];
+                score += RookOnFile[pos.is_on_semiopen_file(Them, s)];
 
             // Penalty when trapped by the king, even more if the king cannot castle
             else if (mob <= 3)