mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Rename constants to use *_NONE scheme
To be uniform across the sources. As a nice side effect I quickly spotted a couple of needed renames: captured_piece() -> captured_piece_type() st->capture -> st->capturedType Proposed by Ralph and done with QtCreator No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -2035,7 +2035,7 @@ namespace {
|
||||
if ( m != MOVE_NULL
|
||||
&& before != VALUE_NONE
|
||||
&& after != VALUE_NONE
|
||||
&& pos.captured_piece() == NO_PIECE_TYPE
|
||||
&& pos.captured_piece_type() == PIECE_TYPE_NONE
|
||||
&& !move_is_special(m))
|
||||
H.set_gain(pos.piece_on(move_to(m)), move_to(m), -(before + after));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user