mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08: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:
@@ -45,5 +45,5 @@ PieceType piece_type_from_char(char c) {
|
||||
|
||||
size_t idx = PieceChars.find(c);
|
||||
|
||||
return idx != string::npos ? PieceType(idx % 7) : NO_PIECE_TYPE;
|
||||
return idx != string::npos ? PieceType(idx % 7) : PIECE_TYPE_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user