mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Additional renaming from DON
Assorted renaming and triviality. No functional change.
This commit is contained in:
@@ -46,10 +46,10 @@ namespace {
|
||||
|
||||
assert(!pos.checkers());
|
||||
|
||||
const int K = Chess960 ? kto > kfrom ? -1 : 1
|
||||
: Side == KING_SIDE ? -1 : 1;
|
||||
const Square K = Chess960 ? kto > kfrom ? DELTA_W : DELTA_E
|
||||
: Side == KING_SIDE ? DELTA_W : DELTA_E;
|
||||
|
||||
for (Square s = kto; s != kfrom; s += (Square)K)
|
||||
for (Square s = kto; s != kfrom; s += K)
|
||||
if (pos.attackers_to(s) & enemies)
|
||||
return mlist;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user