diff options
author | Thanasis Antoniou | 2019-04-27 19:57:55 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-04-28 00:21:16 +0300 |
commit | 083bfd16873f738bce64da472d95f42e2cc97cb1 (patch) | |
tree | 446b30d9ee095f3ad533e65646b0ec47e547120c /engines/bladerunner/script/scene/ug04.cpp | |
parent | 2858873db92ea96c8c69bfbd1f3dc9ec703ab871 (diff) | |
download | scummvm-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/ug04.cpp')
-rw-r--r-- | engines/bladerunner/script/scene/ug04.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/bladerunner/script/scene/ug04.cpp b/engines/bladerunner/script/scene/ug04.cpp index 357332a4c3..d80c67afaf 100644 --- a/engines/bladerunner/script/scene/ug04.cpp +++ b/engines/bladerunner/script/scene/ug04.cpp @@ -24,6 +24,11 @@ namespace BladeRunner { +enum kUG04Loops { + kUG04LoopTrainLoop = 0, + kUG04LoopMainLoop = 1 +}; + void SceneScriptUG04::InitializeScene() { if (Game_Flag_Query(kFlagUG05toUG04)) { Setup_Scene_Information( 0.0f, -1.74f, -2400.0f, 496); @@ -61,10 +66,11 @@ void SceneScriptUG04::InitializeScene() { if ((Global_Variable_Query(kVariableChapter) == 3) || (Global_Variable_Query(kVariableChapter) > 3 && Random_Query(1, 5) == 1) - ){ // enhancement: don't always play the passing train after chapter 3 - Scene_Loop_Start_Special(kSceneLoopModeLoseControl, 0, false); + ){ + // enhancement: don't always play the bikers after chapter 3 + Scene_Loop_Start_Special(kSceneLoopModeLoseControl, kUG04LoopTrainLoop, false); } - Scene_Loop_Set_Default(1); + Scene_Loop_Set_Default(kUG04LoopMainLoop); } void SceneScriptUG04::SceneLoaded() { |