mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Changes identified in RENAME/REFORMATTING thread (#1861)
I've gone through the RENAME/REFORMATTING thread and changed everything I could find, plus a few more. With this, let's close the previous issue and open another. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
e8ffca3eb4
commit
e917bd59b1
@@ -381,7 +381,7 @@ namespace {
|
||||
{
|
||||
File kf = file_of(pos.square<KING>(Us));
|
||||
if ((kf < FILE_E) == (file_of(s) < kf))
|
||||
score -= (TrappedRook - make_score(mob * 22, 0)) * (1 + !pos.can_castle(Us));
|
||||
score -= (TrappedRook - make_score(mob * 22, 0)) * (1 + !pos.castling_rights(Us));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -512,7 +512,7 @@ namespace {
|
||||
Score score = SCORE_ZERO;
|
||||
|
||||
// Non-pawn enemies
|
||||
nonPawnEnemies = pos.pieces(Them) ^ pos.pieces(Them, PAWN);
|
||||
nonPawnEnemies = pos.pieces(Them) & ~pos.pieces(Them, PAWN);
|
||||
|
||||
// Squares strongly protected by the enemy, either because they defend the
|
||||
// square with a pawn, or because they defend the square twice and we don't.
|
||||
|
||||
Reference in New Issue
Block a user