position: xxx_side_to_move 改为 inline
This commit is contained in:
parent
bd4d69a159
commit
bab6472ff2
|
@ -1061,13 +1061,13 @@ void Position::remove_ban_stones()
|
|||
}
|
||||
}
|
||||
|
||||
void Position::set_side_to_move(Color c)
|
||||
inline void Position::set_side_to_move(Color c)
|
||||
{
|
||||
sideToMove = c;
|
||||
them = ~sideToMove;
|
||||
}
|
||||
|
||||
void Position::change_side_to_move()
|
||||
inline void Position::change_side_to_move()
|
||||
{
|
||||
set_side_to_move(~sideToMove);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue