Rename promotion_piece_type() to promotion_type()

Shorter and equally clear to understand.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-02-26 18:31:02 +01:00
parent 96eefc4af6
commit 5bb766e826
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ void MovePicker::score_captures() {
- type_of(pos.piece_moved(m));
if (is_promotion(m))
cur->score += PieceValueMidgame[promotion_piece_type(m)];
cur->score += PieceValueMidgame[promotion_type(m)];
}
}