[Scummvm-cvs-logs] scummvm master -> 60b0f12c5b68563681802d3b29c13ffcb08cd473
dreammaster
dreammaster at scummvm.org
Sun Oct 9 11:07:34 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
60b0f12c5b TSAGE: Added code allowing Blue Force intro to be skipped by clicking the mouse
Commit: 60b0f12c5b68563681802d3b29c13ffcb08cd473
https://github.com/scummvm/scummvm/commit/60b0f12c5b68563681802d3b29c13ffcb08cd473
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-10-09T02:00:27-07:00
Commit Message:
TSAGE: Added code allowing Blue Force intro to be skipped by clicking the mouse
Changed paths:
engines/tsage/blue_force/blueforce_logic.cpp
diff --git a/engines/tsage/blue_force/blueforce_logic.cpp b/engines/tsage/blue_force/blueforce_logic.cpp
index 6f8d685..b5465e7 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);
}
More information about the Scummvm-git-logs
mailing list