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:
Marco Costalba
2013-06-23 10:16:43 +02:00
parent b2fadf32aa
commit a4c11b71ac
4 changed files with 8 additions and 13 deletions

View File

@@ -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)
{