mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Retire in_front_bb(Color c, Square s) overload
Explciitly call rank_of() in the few places where it is used. No functional change.
This commit is contained in:
@@ -989,7 +989,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
// black pawns: a4, b4 white: b2 then pawn in b4 is giving support.
|
||||
if (!opposed)
|
||||
{
|
||||
b2 = supporters & in_front_bb(winnerSide, blockSq + pawn_push(winnerSide));
|
||||
b2 = supporters & in_front_bb(winnerSide, rank_of(blockSq + pawn_push(winnerSide)));
|
||||
|
||||
while (b2) // This while-loop could be replaced with LSB/MSB (depending on color)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user