Skip to content

Commit

Permalink
Reset game state.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Jan 7, 2025
1 parent dae6bf6 commit 1742048
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ReleaseNotes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
- Faster std::copy().
- GNUChess! Lovely depth of five.
- New Connection Configuration -> Reset.
- Prevent king from moving onto a terminal square.
- Prevent king from moving onto a terminal square.
- Reset the game state after a connection is terminated.
2 changes: 2 additions & 0 deletions Source/qtchess_gui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ void qtchess_gui::slot_quit_gnuchess(void)
{
QApplication::setOverrideCursor(Qt::WaitCursor);
comm ? comm->stop_gnuchess() : (void) 0;
initialize_board();
m_ui.action_Connection_Configuration->setEnabled(true);
m_ui.action_New_Game->setEnabled(true);
QApplication::restoreOverrideCursor();
Expand All @@ -651,6 +652,7 @@ void qtchess_gui::set_status_text(const QString &str)

void qtchess_gui::show_disconnect(void)
{
initialize_board();
m_ui.side->setVisible(false);
stop_timers(OPPONENT_TIMER);
stop_timers(PLAYER_TIMER);
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/20250115.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
* GNUChess! Lovely depth of five.
* New Connection Configuration -> Reset.
* Prevent king from moving onto a terminal square.
* Reset the game state after a connection is terminated.

0 comments on commit 1742048

Please sign in to comment.