aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-26 11:03:21 +0000
committerFilippos Karapetis2008-05-26 11:03:21 +0000
commitdd6821cbcb3ed67086ce69e01ebf9d1274768ffd (patch)
treed6c6a7282315573c33f257ca485b5aee987c05bb /engines/saga
parentaa02a6758a8c5933aca3d80b5d1c3a2af5c7f300 (diff)
downloadscummvm-rg350-dd6821cbcb3ed67086ce69e01ebf9d1274768ffd.tar.gz
scummvm-rg350-dd6821cbcb3ed67086ce69e01ebf9d1274768ffd.tar.bz2
scummvm-rg350-dd6821cbcb3ed67086ce69e01ebf9d1274768ffd.zip
Cleanup
svn-id: r32280
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/rscfile.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/saga/rscfile.cpp b/engines/saga/rscfile.cpp
index bd5bfdfa1d..b7d4f4f1bd 100644
--- a/engines/saga/rscfile.cpp
+++ b/engines/saga/rscfile.cpp
@@ -658,12 +658,8 @@ static int metaResourceTable[] = { 0, 326, 517, 677, 805, 968, 1165, 0, 1271 };
static int metaResourceTableDemo[] = { 0, 0, 0, 0, 0, 0, 0, 285, 0 };
void Resource::loadGlobalResources(int chapter, int actorsEntrance) {
- if (chapter < 0) {
- if (_vm->getGameId() != GID_IHNM_DEMO)
- chapter = 8;
- else
- chapter = 7;
- }
+ if (chapter < 0)
+ chapter = (_vm->getGameId() != GID_IHNM_DEMO) ? 8 : 7;
// TODO
//if (module.voiceLUT)