mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Retire operator|(File f, Rank r)
Use make_square() instead. Less fancy but more clear. No functional change.
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ Value Entry::shelter_storm(const Position& pos, Square ksq) {
|
||||
b = theirPawns & file_bb(f);
|
||||
rkThem = b ? relative_rank(Us, frontmost_sq(Them, b)) : RANK_1;
|
||||
|
||||
if ( (MiddleEdges & (f | rkThem))
|
||||
if ( (MiddleEdges & make_square(f, rkThem))
|
||||
&& file_of(ksq) == f
|
||||
&& relative_rank(Us, ksq) == rkThem - 1)
|
||||
safety += Value(200);
|
||||
|
||||
Reference in New Issue
Block a user