From cb4f5ada5c91629e96f1daecaf85dc92bee5359d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 1 Mar 2022 15:58:02 +0100 Subject: Move PGN export to the right place --- src/game_tab/Game.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/game_tab/Game.cpp') diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp index 8b52ca6..1bc1e4c 100644 --- a/src/game_tab/Game.cpp +++ b/src/game_tab/Game.cpp @@ -99,7 +99,6 @@ bool Game::Play(std::string move) { if (moves == NULL) { moves = m; } - wxLogDebug("%s", GetPGN()); return (true); } return (false); @@ -139,17 +138,7 @@ std::string Game::GetFen() { return (current->GetFen()); } -std::string Game::GetPGN() { - std::string pgn; - if (moves != NULL) { - for (auto const &element : tags) { - pgn += '[' + element.first + " \"" + element.second + "\"]\n"; - } - pgn += moves->GetPGN(); - } - pgn += " " + result; - return (pgn); -} +std::string Game::GetResult() { return (result); } void Game::SetResult(std::string result) { this->result = result; } -- cgit v1.2.3