aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-02 08:15:51 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-02 08:15:51 +0100
commit4f2c68de6013bab307b299cfd6158225475a3fc6 (patch)
tree9b6daf52b0ca559ab74c1cb390b4067051565456 /src/game_tab/left_panel
parentdd24427d81d04765cbe3426b511b1ad05952d087 (diff)
Update CGEditor+debug
Diffstat (limited to 'src/game_tab/left_panel')
-rw-r--r--src/game_tab/left_panel/GameTabLeftPanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp
index fd89791..fa97f6f 100644
--- a/src/game_tab/left_panel/GameTabLeftPanel.cpp
+++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp
@@ -63,12 +63,12 @@ GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game)
void GameTabLeftPanel::OnPlay(wxCommandEvent &event) {
wxLogDebug("Game tab received PLAY_MOVE_EVENT");
if (game->Play(event.GetString().ToStdString())) {
- Notify(true);
// Notify other classes
wxCommandEvent event(GAME_CHANGE, GetId());
event.SetEventObject(this);
ProcessEvent(event);
}
+ Notify(true); // Redraw event is move failed! Otherwise piece not resets to it initial position after dragging
}
void GameTabLeftPanel::Notify(bool skip_animation) {