position: Position::set() 中去掉对 phase 判断后退出的逻辑
即允许走入 Position::set() 时 phrase 是任意状态。
This commit is contained in:
parent
5ad8b4503a
commit
61f61391aa
|
@ -198,9 +198,11 @@ Position &Position::set(const string &fenStr, Thread *th)
|
||||||
Square sq = SQ_A1;
|
Square sq = SQ_A1;
|
||||||
std::istringstream ss(fenStr);
|
std::istringstream ss(fenStr);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (this->phase != PHASE_NONE && this->phase != PHASE_READY && this->phase != PHASE_GAMEOVER) {
|
if (this->phase != PHASE_NONE && this->phase != PHASE_READY && this->phase != PHASE_GAMEOVER) {
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
std::memset(this, 0, sizeof(Position));
|
std::memset(this, 0, sizeof(Position));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue