Rename type_of_piece() and color_of_piece()

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-06-26 10:52:42 +01:00
parent 923b14afaa
commit ae2f5f25cd
6 changed files with 40 additions and 40 deletions

View File

@@ -95,7 +95,7 @@ const string move_to_san(Position& pos, Move m) {
bool ambiguousMove, ambiguousFile, ambiguousRank;
Square sq, from = move_from(m);
Square to = move_to(m);
PieceType pt = type_of_piece(pos.piece_on(from));
PieceType pt = piece_type(pos.piece_on(from));
string san;
if (m == MOVE_NONE)