aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-10-09 20:00:27 +1100
committerPaul Gilbert2011-10-09 20:00:27 +1100
commit60b0f12c5b68563681802d3b29c13ffcb08cd473 (patch)
treeb515e9193aaa015395889756223cf32a9f54cc7e /engines
parent04854256974ad9bd04120a4d5b331d54999af68f (diff)
downloadscummvm-rg350-60b0f12c5b68563681802d3b29c13ffcb08cd473.tar.gz
scummvm-rg350-60b0f12c5b68563681802d3b29c13ffcb08cd473.tar.bz2
scummvm-rg350-60b0f12c5b68563681802d3b29c13ffcb08cd473.zip
TSAGE: Added code allowing Blue Force intro to be skipped by clicking the mouse
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/blue_force/blueforce_logic.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_logic.cpp b/engines/tsage/blue_force/blueforce_logic.cpp
index 6f8d68566e..b5465e7c40 100644
--- a/engines/tsage/blue_force/blueforce_logic.cpp
+++ b/engines/tsage/blue_force/blueforce_logic.cpp
@@ -908,6 +908,23 @@ void SceneHandlerExt::process(Event &event) {
return;
}
+ // If the user clicks the button whislt the introduction is active, prompt for playing the game
+ if ((BF_GLOBALS._dayNumber == 0) && (event.eventType == EVENT_BUTTON_DOWN)) {
+ // Prompt user for whether to start play or watch introduction
+ BF_GLOBALS._player.enableControl();
+ BF_GLOBALS._events.setCursor(CURSOR_WALK);
+
+ if (MessageDialog::show2(WATCH_INTRO_MSG, START_PLAY_BTN_STRING, INTRODUCTION_BTN_STRING) == 0) {
+ // Start the game
+ BF_GLOBALS._dayNumber = 1;
+ BF_GLOBALS._sceneManager.changeScene(190);
+ } else {
+ BF_GLOBALS._player.disableControl();
+ }
+
+ event.handled = true;
+ }
+
SceneHandler::process(event);
}