aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-04 21:49:42 -0400
committerMatthew Hoops2011-09-04 21:49:42 -0400
commit7070d886d9363935d0f4f73817190b2bf0a3666a (patch)
tree9262b863947203c1738c0891dc9c78d9a0e8ff71
parent4f8cf1ea4b7bb329c78cfe1b907b408fa6c9ce18 (diff)
downloadscummvm-rg350-7070d886d9363935d0f4f73817190b2bf0a3666a.tar.gz
scummvm-rg350-7070d886d9363935d0f4f73817190b2bf0a3666a.tar.bz2
scummvm-rg350-7070d886d9363935d0f4f73817190b2bf0a3666a.zip
PEGASUS: Fix bug in the credits
Not that this code will be final (in all likelihood :P)
-rw-r--r--engines/pegasus/credits.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/pegasus/credits.cpp b/engines/pegasus/credits.cpp
index 3c625faf32..4ef723ecdb 100644
--- a/engines/pegasus/credits.cpp
+++ b/engines/pegasus/credits.cpp
@@ -102,9 +102,11 @@ void PegasusEngine::runCredits() {
}
break;
case Common::KEYCODE_RETURN:
- drawCredits(curButton, true, frame, creditsVideo);
- _system->updateScreen();
- continueLooping = (curButton != kCreditsMainMenu);
+ if (curButton == kCreditsMainMenu) {
+ drawCredits(curButton, true, frame, creditsVideo);
+ _system->updateScreen();
+ continueLooping = false;
+ }
break;
default:
break;