diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-25 11:13:35 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-25 11:13:35 +0100 |
| commit | 64dec753e7a6594a8b68f7978773e80353d8e869 (patch) | |
| tree | ce8b862fde15c51b8b981f1d628f0d43cc2bfdc7 /src/game_tab/HalfMove.cpp | |
| parent | 6f866f55ee39c5f92c600ab33e787f628b00c1a4 (diff) | |
Enable PGN save (slow for now so do not use it).
Diffstat (limited to 'src/game_tab/HalfMove.cpp')
| -rw-r--r-- | src/game_tab/HalfMove.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game_tab/HalfMove.cpp b/src/game_tab/HalfMove.cpp index 94d9a8c..2b84382 100644 --- a/src/game_tab/HalfMove.cpp +++ b/src/game_tab/HalfMove.cpp @@ -115,16 +115,16 @@ void HalfMove::SetAsMainline() { HalfMove *HalfMove::GetMainline() { return (mainline); } -HalfMove::HalfMove(pgnp::HalfMove *m, std::string initial_fen): capture(' ') { +HalfMove::HalfMove(pgnp::HalfMove *m, std::string initial_fen) : capture(' ') { chessarbiter::ChessArbiter arbiter; arbiter.Setup(initial_fen); - bool work=arbiter.Play(arbiter.ParseSAN(m->move)); - if(!work){ - wxLogDebug("Bug! %s",m->move); + bool work = arbiter.Play(arbiter.ParseSAN(m->move)); + if (!work) { + wxLogDebug("Bug! %s", m->move); } - char capture=arbiter.GetCapture(); - if(capture != ' '){ - this->capture=capture; + char capture = arbiter.GetCapture(); + if (capture != ' ') { + this->capture = capture; } this->fen = arbiter.GetFEN(); this->move = m->move; |
