From a7b0d19bdba89c03e746224459cc4345b264bb8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Mon, 12 Sep 2011 20:25:18 +0300 Subject: [PATCH] Advances to the next level again Conflicts: seascene.cpp --- seascene.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/seascene.cpp b/seascene.cpp index 27679db..67ffcd1 100644 --- a/seascene.cpp +++ b/seascene.cpp @@ -416,9 +416,22 @@ void SeaScene::handleScreenTapped() { pAboutBoxItem_->hide(); pPausetextItem_->show(); + return; } } + //If the game is paused, check if the level completed item is shown + + if (pLevelCompletedItem_) + { + if (pLevelCompletedItem_->isVisible()) + { + pLevelCompletedItem_->hide(); + restartLevel(); //Current level has already been set to the next one before showing the level completed item + pPauseAction_->setChecked(false); //unpause + return; + } + } //If the game is paused, check if the victory item is being shown if(pVictoryCongratulationsItem_) @@ -432,6 +445,7 @@ void SeaScene::handleScreenTapped() } } + //If the game is paused and no victory or about box, check if menu item was selected QList items = selectedItems(); -- 1.7.9.5