diff options
author | Filippos Karapetis | 2016-05-22 16:16:19 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-05-22 16:28:41 +0300 |
commit | ba930cf65eaa0f2ed1b13174d0903f9b5906cb80 (patch) | |
tree | b31c4b11fe44bc332fe8ed4984465f46fddd49c9 /engines/saga/scene.cpp | |
parent | e17d1a1482b0f2a5eafafe225d1a2fd0507a9f69 (diff) | |
download | scummvm-rg350-ba930cf65eaa0f2ed1b13174d0903f9b5906cb80.tar.gz scummvm-rg350-ba930cf65eaa0f2ed1b13174d0903f9b5906cb80.tar.bz2 scummvm-rg350-ba930cf65eaa0f2ed1b13174d0903f9b5906cb80.zip |
SAGA: Remove curly brackets from some 1-line if statements
Diffstat (limited to 'engines/saga/scene.cpp')
-rw-r--r-- | engines/saga/scene.cpp | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp index efd4c371b1..5cb4b55899 100644 --- a/engines/saga/scene.cpp +++ b/engines/saga/scene.cpp @@ -969,9 +969,8 @@ void Scene::processSceneResources(SceneResourceDataArray &resourceList) { case SAGA_OBJECT: break; case SAGA_BG_IMAGE: // Scene background resource - if (_bg.loaded) { + if (_bg.loaded) error("Scene::processSceneResources() Multiple background resources encountered"); - } debug(3, "Loading background resource."); @@ -987,9 +986,9 @@ void Scene::processSceneResources(SceneResourceDataArray &resourceList) { memcpy(_bg.pal, palPointer, sizeof(_bg.pal)); break; case SAGA_BG_MASK: // Scene background mask resource - if (_bgMask.loaded) { + if (_bgMask.loaded) error("Scene::ProcessSceneResources(): Duplicate background mask resource encountered"); - } + debug(3, "Loading BACKGROUND MASK resource."); _vm->decodeBGImage(resourceData, _bgMask.buffer, &_bgMask.w, &_bgMask.h, true); _bgMask.loaded = true; @@ -1014,47 +1013,38 @@ void Scene::processSceneResources(SceneResourceDataArray &resourceList) { _actionMap->load(resourceData); break; case SAGA_ISO_IMAGES: - if (!(_sceneDescription.flags & kSceneFlagISO)) { + if (!(_sceneDescription.flags & kSceneFlagISO)) error("Scene::ProcessSceneResources(): not Iso mode"); - } debug(3, "Loading isometric images resource."); _vm->_isoMap->loadImages(resourceData); break; case SAGA_ISO_MAP: - if (!(_sceneDescription.flags & kSceneFlagISO)) { + if (!(_sceneDescription.flags & kSceneFlagISO)) error("Scene::ProcessSceneResources(): not Iso mode"); - } debug(3, "Loading isometric map resource."); - _vm->_isoMap->loadMap(resourceData); break; case SAGA_ISO_PLATFORMS: - if (!(_sceneDescription.flags & kSceneFlagISO)) { + if (!(_sceneDescription.flags & kSceneFlagISO)) error("Scene::ProcessSceneResources(): not Iso mode"); - } debug(3, "Loading isometric platforms resource."); - _vm->_isoMap->loadPlatforms(resourceData); break; case SAGA_ISO_METATILES: - if (!(_sceneDescription.flags & kSceneFlagISO)) { + if (!(_sceneDescription.flags & kSceneFlagISO)) error("Scene::ProcessSceneResources(): not Iso mode"); - } debug(3, "Loading isometric metatiles resource."); - _vm->_isoMap->loadMetaTiles(resourceData); break; case SAGA_ANIM: { uint16 animId = resource->resourceType - 14; - debug(3, "Loading animation resource animId=%i", animId); - _vm->_anim->load(animId, resourceData); } break; @@ -1063,9 +1053,8 @@ void Scene::processSceneResources(SceneResourceDataArray &resourceList) { loadSceneEntryList(resourceData); break; case SAGA_ISO_MULTI: - if (!(_sceneDescription.flags & kSceneFlagISO)) { + if (!(_sceneDescription.flags & kSceneFlagISO)) error("Scene::ProcessSceneResources(): not Iso mode"); - } debug(3, "Loading isometric multi resource."); |