Commit 02ad3cab authored by Tom on the web's avatar Tom on the web 🚴🏿 Committed by Albert Astals Cid
Browse files

Avoid warning about starting a new game when none are running

parent fadd479c
Pipeline #87198 passed with stage
in 31 seconds
......@@ -277,6 +277,8 @@ void MainWindow::slotNewGame() {
m_demoMode = true;
slotNewDemo();
} else {
Kg::difficulty()->setGameRunning(true);
Dimension dimension(NUMCOLS, NUMCOLS);
if (m_scene == 0) {
m_scene = new Scene(m_theme, m_animate);
......@@ -341,6 +343,7 @@ void MainWindow::slotNewDemo() {
this, &MainWindow::slotNewDemoWait);
statusBar()->showMessage(i18n("Start a new Game to play"));
m_game->start();
Kg::difficulty()->setGameRunning(false);
}
void MainWindow::slotNewDemoWait() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment