diff options
author | Robert Göffringmann | 2003-12-29 15:54:06 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-12-29 15:54:06 +0000 |
commit | ba44d8e98901e4c24d219811227b5fe0ed44687d (patch) | |
tree | 6510c3186868e8a7caf6b69e147326ec0ea0163b /sword1 | |
parent | 9e78d9e14e923a33c9eeb630f65262ca291d1244 (diff) | |
download | scummvm-rg350-ba44d8e98901e4c24d219811227b5fe0ed44687d.tar.gz scummvm-rg350-ba44d8e98901e4c24d219811227b5fe0ed44687d.tar.bz2 scummvm-rg350-ba44d8e98901e4c24d219811227b5fe0ed44687d.zip |
fix resource references for soldout version
svn-id: r12012
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/resman.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sword1/resman.cpp b/sword1/resman.cpp index c51cbdf83c..412a83ebda 100644 --- a/sword1/resman.cpp +++ b/sword1/resman.cpp @@ -238,28 +238,28 @@ File *ResMan::openClusterFile(uint32 id) { } BsMemHandle *ResMan::resHandle(uint32 id) { - uint8 cluster = (uint8)((id >> 24) - 1); - uint8 group = (uint8)(id >> 16); if ((id >> 16) == 0x0405) id = _srIdList[id & 0xFFFF]; + uint8 cluster = (uint8)((id >> 24) - 1); + uint8 group = (uint8)(id >> 16); return &(_prj.clu[cluster]->grp[group]->resHandle[id & 0xFFFF]); } uint32 ResMan::resLength(uint32 id) { - uint8 cluster = (uint8)((id >> 24) - 1); - uint8 group = (uint8)(id >> 16); if ((id >> 16) == 0x0405) id = _srIdList[id & 0xFFFF]; + uint8 cluster = (uint8)((id >> 24) - 1); + uint8 group = (uint8)(id >> 16); return _prj.clu[cluster]->grp[group]->length[id & 0xFFFF]; } uint32 ResMan::resOffset(uint32 id) { - uint8 cluster = (uint8)((id >> 24) - 1); - uint8 group = (uint8)(id >> 16); if ((id >> 16) == 0x0405) id = _srIdList[id & 0xFFFF]; + uint8 cluster = (uint8)((id >> 24) - 1); + uint8 group = (uint8)(id >> 16); return _prj.clu[cluster]->grp[group]->offset[id & 0xFFFF]; } |