Remove xxx_of_color() for real

Remove also from assert expressions. Was hidden
in release mode.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-02-17 17:26:15 +01:00
parent 7013efce4e
commit c45818e9f8
4 changed files with 23 additions and 23 deletions

View File

@@ -216,7 +216,7 @@ PawnInfo *PawnInfoTable::get_pawn_info(const Position &pos) {
File f = square_file(s);
Rank r = square_rank(s);
assert(pos.piece_on(s) == pawn_of_color(us));
assert(pos.piece_on(s) == piece_of_color_and_type(us, PAWN));
// The file containing the pawn is not half open
pi->halfOpenFiles[us] &= ~(1 << f);