diff options
author | Eugene Sandulenko | 2005-08-06 16:05:13 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-08-06 16:05:13 +0000 |
commit | c950bd8231f1642ff4542b13cb2880aaa88795bb (patch) | |
tree | f61a259471dcc6c5c431db5da71abfa8b5ade56a | |
parent | 510c6f9595d88b6a768828645833607a2fdcaf07 (diff) | |
download | scummvm-rg350-c950bd8231f1642ff4542b13cb2880aaa88795bb.tar.gz scummvm-rg350-c950bd8231f1642ff4542b13cb2880aaa88795bb.tar.bz2 scummvm-rg350-c950bd8231f1642ff4542b13cb2880aaa88795bb.zip |
Fixes for metaResources loading
svn-id: r18622
-rw-r--r-- | saga/rscfile.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/saga/rscfile.cpp b/saga/rscfile.cpp index e30f3246ae..4b0b740669 100644 --- a/saga/rscfile.cpp +++ b/saga/rscfile.cpp @@ -425,6 +425,9 @@ void Resource::loadResource(ResourceContext *context, uint32 resourceId, byte*&r static int metaResourceTable[] = { 0, 326, 517, 677, 805, 968, 1165, 0, 1271 }; void Resource::loadGlobalResources(int chapter, int actorsEntrance) { + if (chapter < 0) + chapter = 8; + // TODO //if (module.voiceLUT) // free module.voiceLUT; @@ -468,6 +471,10 @@ void Resource::loadGlobalResources(int chapter, int actorsEntrance) { _vm->_actor->loadList(actorsEntrance, _metaResource.actorCount, _metaResource.actorsResourceID, _metaResource.protagStatesCount, _metaResource.protagStatesResourceID); + + _vm->_actor->_protagonist->sceneNumber = _metaResource.sceneIndex; + + } } // End of namespace Saga |