diff options
Diffstat (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp')
| -rw-r--r-- | src/game_tab/left_panel/GameTabLeftPanel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp index cd3bfe4..d1604e4 100644 --- a/src/game_tab/left_panel/GameTabLeftPanel.cpp +++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp @@ -2,7 +2,7 @@ #include <wx/clipbrd.h> GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game) - : TabGameLeftPanel(parent), game(game) { + : TabGameLeftPanel(parent), game(game), repeat(false) { // Add board board_canvas = new BoardCanvas((wxFrame *)this); @@ -22,7 +22,6 @@ GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game) Bind(wxEVT_BUTTON, &GameTabLeftPanel::OnZoomOut, this, ZOOM_OUT_BTN); Bind(wxEVT_KEY_DOWN, [p=this](wxKeyEvent &e){e.ResumePropagation(1);e.Skip();}); Bind(wxEVT_KEY_UP, [p=this](wxKeyEvent &e){e.ResumePropagation(1);e.Skip();}); - repeat=false; } void GameTabLeftPanel::PreviousMove(bool isKeyDown) { @@ -79,7 +78,6 @@ void GameTabLeftPanel::OnPlay(wxCommandEvent &event) { } void GameTabLeftPanel::Notify(bool animate, bool backward) { - wxLogDebug("Notify"); std::string fen = game->GetFen(); std::map<char, std::uint8_t> captures; HalfMove *m = game->GetCurrentMove(); @@ -114,7 +112,6 @@ void GameTabLeftPanel::Notify(bool animate, bool backward) { game->IsBlackToPlay(), captures,src,dst,repeat); } } - // If m undefined if(!m){ last_absolute_move=""; |
