diff options
author | Paul Gilbert | 2009-04-29 10:37:00 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-04-29 10:37:00 +0000 |
commit | 4a2e5bb79356b7f3433d548ea03a0a00a464f3ad (patch) | |
tree | 0a6bcf154ff93968d74f0cce5623b5757ef31f8b /engines/tinsel/tinlib.cpp | |
parent | eaf22dc66c86aaa020569a510439cbf2e49e61d4 (diff) | |
download | scummvm-rg350-4a2e5bb79356b7f3433d548ea03a0a00a464f3ad.tar.gz scummvm-rg350-4a2e5bb79356b7f3433d548ea03a0a00a464f3ad.tar.bz2 scummvm-rg350-4a2e5bb79356b7f3433d548ea03a0a00a464f3ad.zip |
Re-introduced the ability to skip the title scenes in Discworld 1. Since the exact scene numbers differed between language versions, this new version simply relies on skipping the first four screens - hopefully, none of the various versions will have any extra title screens.
svn-id: r40196
Diffstat (limited to 'engines/tinsel/tinlib.cpp')
-rw-r--r-- | engines/tinsel/tinlib.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/tinsel/tinlib.cpp b/engines/tinsel/tinlib.cpp index c594699036..b4e7e14016 100644 --- a/engines/tinsel/tinlib.cpp +++ b/engines/tinsel/tinlib.cpp @@ -108,6 +108,7 @@ extern int NewestSavedGame(void); // in SCENE.CPP extern void setshowpos(void); +extern int sceneCtr; // in TINSEL.CPP extern void SetCdChangeScene(SCNHANDLE hScene); @@ -1436,6 +1437,9 @@ void NewScene(CORO_PARAM, SCNHANDLE scene, int entrance, int transition) { else GetControl(CONTROL_STARTOFF); + if (TinselV1) + ++sceneCtr; + // Prevent code subsequent to this call running before scene changes if (g_scheduler->getCurrentPID() != PID_MASTER_SCR) CORO_KILL_SELF(); @@ -2406,7 +2410,9 @@ void FnRestartGame(void) { // TODO: Tinsel 2 comments out the 2 calls, but I'm not sure that this should be done StopMidi(); StopSample(); + bRestart = true; + sceneCtr = 0; } /** |