aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/scene/ma05.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2019-04-27 19:57:55 +0300
committerThanasis Antoniou2019-04-28 00:21:16 +0300
commit083bfd16873f738bce64da472d95f42e2cc97cb1 (patch)
tree446b30d9ee095f3ad533e65646b0ec47e547120c /engines/bladerunner/script/scene/ma05.cpp
parent2858873db92ea96c8c69bfbd1f3dc9ec703ab871 (diff)
downloadscummvm-rg350-083bfd16873f738bce64da472d95f42e2cc97cb1.tar.gz
scummvm-rg350-083bfd16873f738bce64da472d95f42e2cc97cb1.tar.bz2
scummvm-rg350-083bfd16873f738bce64da472d95f42e2cc97cb1.zip
BLADERUNNER: BB01, DR01, NR01 reduce freq of intro scene
They'll play the first time, but have 33% probability to play on subsequent visits
Diffstat (limited to 'engines/bladerunner/script/scene/ma05.cpp')
-rw-r--r--engines/bladerunner/script/scene/ma05.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/bladerunner/script/scene/ma05.cpp b/engines/bladerunner/script/scene/ma05.cpp
index 6c2622d266..9eca4ba675 100644
--- a/engines/bladerunner/script/scene/ma05.cpp
+++ b/engines/bladerunner/script/scene/ma05.cpp
@@ -25,9 +25,9 @@
namespace BladeRunner {
enum kMA05Loops {
- kMA05LoopInshot = 0, // 0 - 29 // Frame 29 (in Acts 1 and 2 this ties in with Frame 30 of the Loop Main, in Act 5 it ties with frame 60?!)
- kMA05LoopMain = 1, // 30 - 90
- kMA05LoopSpinner = 3 // 91 - 150 // Frame 150 ties in with Frame 30 of Loop Main
+ kMA05LoopInshot = 0, // 0 - 29 // Frame 29 (in Acts 1 and 2 this ties in with Frame 30 of the Loop Main, in Act 5 it ties with frame 60?!)
+ kMA05LoopMainLoop = 1, // 30 - 90
+ kMA05LoopSpinner = 3 // 91 - 150 // Frame 150 ties in with Frame 30 of Loop Main
};
enum kMA05Exits {
@@ -63,7 +63,7 @@ void SceneScriptMA05::InitializeScene() {
if (Global_Variable_Query(kVariableChapter) != 2 && Global_Variable_Query(kVariableChapter) != 3) {
Scene_Loop_Start_Special(kSceneLoopModeLoseControl, kMA05LoopInshot, false);
}
- Scene_Loop_Set_Default(kMA05LoopMain);
+ Scene_Loop_Set_Default(kMA05LoopMainLoop);
}
void SceneScriptMA05::SceneLoaded() {
@@ -120,7 +120,7 @@ void SceneScriptMA05::ActorChangedGoal(int actorId, int newGoal, int oldGoal, bo
void SceneScriptMA05::PlayerWalkedIn() {
Music_Play(kMusicBRBlues, 52, 0, 2, -1, 0, 0);
if ((Random_Query(0, 4) == 1 || (Game_Flag_Query(kFlagChapter1Ending) && !Game_Flag_Query(kFlagChapter1Ended))) && Global_Variable_Query(kVariableChapter) == 1) {
- Scene_Loop_Set_Default(kMA05LoopMain);
+ Scene_Loop_Set_Default(kMA05LoopMainLoop);
Scene_Loop_Start_Special(kSceneLoopModeOnce, kMA05LoopSpinner, true);
Sound_Play(kSfxSPIN3A, 100, 0, 0, 50);
}