From aa94a41353e5df639548ce2ca21a0db83f7c3027 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 29 Dec 2022 12:28:51 +0100 Subject: Debug pieces animation --- src/game_tab/left_panel/GameTabLeftPanel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp') 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 GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr 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) 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 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=""; -- cgit v1.2.3