From 4a2e5bb79356b7f3433d548ea03a0a00a464f3ad Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 29 Apr 2009 10:37:00 +0000 Subject: 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 --- engines/tinsel/tinlib.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/tinsel/tinlib.cpp') 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; } /** -- cgit v1.2.3