mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 03:31:40 +00:00
TINSEL: Fix bug #3306020, DW2: Crash On Entering Sewers
This is the cowardly fix that reintroduces one of the variables that was removed by a cleanup on April 10.
This commit is contained in:
parent
5838ef6719
commit
793849c974
@ -79,6 +79,7 @@ static uint numHandles = 0;
|
||||
|
||||
static uint32 cdPlayHandle = (uint32)-1;
|
||||
|
||||
static int cdPlaySceneNum;
|
||||
static SCNHANDLE cdBaseHandle = 0, cdTopHandle = 0;
|
||||
static Common::File *cdGraphStream = 0;
|
||||
|
||||
@ -246,7 +247,9 @@ void LoadCDGraphData(MEMHANDLE *pH) {
|
||||
* @param next Handle of end of range + 1
|
||||
*/
|
||||
void LoadExtraGraphData(SCNHANDLE start, SCNHANDLE next) {
|
||||
if (start == cdBaseHandle)
|
||||
// It's not clear that this can ever be true. See bug #3306020, DW2:
|
||||
// Crash On Entering Sewers, for some background information.
|
||||
if (cdPlaySceneNum == 0 && start == cdBaseHandle)
|
||||
return;
|
||||
|
||||
OpenCDGraphFile();
|
||||
@ -262,6 +265,7 @@ void LoadExtraGraphData(SCNHANDLE start, SCNHANDLE next) {
|
||||
}
|
||||
|
||||
void SetCdPlaySceneDetails(int fileNum, const char *fileName) {
|
||||
cdPlaySceneNum = fileNum;
|
||||
strcpy(szCdPlayFile, fileName);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user