diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-23 18:47:18 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-23 18:47:18 +0100 |
| commit | a3c24f27f081e49b9a814aba61d298f1d0a5d0fa (patch) | |
| tree | 668fbefe38925fe750fee3323f03f8d42d2215f5 /src/game_tab/Game.cpp | |
| parent | ce941c146aea7925bded6b9d2a0d0559d3156ad3 (diff) | |
Debug PGN import
Diffstat (limited to 'src/game_tab/Game.cpp')
| -rw-r--r-- | src/game_tab/Game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game_tab/Game.cpp b/src/game_tab/Game.cpp index ad712bb..b9181a9 100644 --- a/src/game_tab/Game.cpp +++ b/src/game_tab/Game.cpp @@ -15,10 +15,10 @@ Game::Game(std::string fen) : current(NULL), moves(NULL) { board = chessarbiter::FENParser::Parse(fen).board; } -Game::Game(HalfMove *m) { +Game::Game(HalfMove *m, std::string initial_fen) { moves = m; current = m; - initial_fen = m->GetFen(); + this->initial_fen = initial_fen; board = chessarbiter::FENParser::Parse(initial_fen).board; } @@ -91,7 +91,7 @@ bool Game::Play(std::string move) { if (moves == NULL) { moves = m; } - wxLogDebug("%s",GetPGN()); + wxLogDebug("%s", GetPGN()); return (true); } return (false); |
