]> git.sesse.net Git - stockfish/commitdiff
Rename piece_attacks() in piece_attacks_from()
authorMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 09:26:54 +0000 (10:26 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 09:26:54 +0000 (10:26 +0100)
It is a bit longer but much easier to understand especially
for people new to the sources. I remember it was not trivial
for me to understand the returned attack bitboard refers to
attacks launched from the given square and not attacking the
given square.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found