diff options
author | Eugene Sandulenko | 2013-10-10 23:58:44 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-10 23:58:44 +0300 |
commit | 5b54a546e0de7a3e2e103667320459695a243d9c (patch) | |
tree | ab77ec9fdad4d55d64854b573bd62b6b21b7d3f2 /engines/fullpipe/scenes.cpp | |
parent | 4b3cfa1c572e3e0e196b0ed2d89dd570a7404a67 (diff) | |
download | scummvm-rg350-5b54a546e0de7a3e2e103667320459695a243d9c.tar.gz scummvm-rg350-5b54a546e0de7a3e2e103667320459695a243d9c.tar.bz2 scummvm-rg350-5b54a546e0de7a3e2e103667320459695a243d9c.zip |
FULLPIPE: Made setting rooms via bootparams easier
Diffstat (limited to 'engines/fullpipe/scenes.cpp')
-rw-r--r-- | engines/fullpipe/scenes.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp index 9fb8a95f53..40d9f21afb 100644 --- a/engines/fullpipe/scenes.cpp +++ b/engines/fullpipe/scenes.cpp @@ -74,6 +74,23 @@ Vars::Vars() { selector = 0; } +static int scenes[] = { + SC_1, SC_2, SC_3, SC_4, SC_5, SC_6, SC_7, SC_8, SC_9, SC_10, + SC_11, SC_12, SC_13, SC_14, SC_15, SC_16, SC_17, SC_18, SC_19, SC_20, + SC_21, SC_22, SC_23, SC_24, SC_25, SC_26, SC_27, SC_28, SC_29, SC_30, + SC_31, SC_32, SC_33, SC_34, SC_35, SC_36, SC_37, SC_38, SC_DBGMENU +}; + +int FullpipeEngine::convertScene(int scene) { + if (!scene || scene >= SC_1) + return scene; + + if (scene < 1 || scene > 39) + return SC_1; + + return scenes[scene - 1]; +} + bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) { GameVar *sceneVar; Common::Point sceneDim; |