From 64dec753e7a6594a8b68f7978773e80353d8e869 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 25 Feb 2022 11:13:35 +0100 Subject: Enable PGN save (slow for now so do not use it). --- src/game_tab/HalfMove.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/game_tab/HalfMove.cpp') 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; -- cgit v1.2.3