diff options
author | Eric Fry | 2018-07-05 10:04:23 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 848b5a5ff5c317a92ba26254b94d273f2aa6bf97 (patch) | |
tree | 6b11ae0354e93f4ec5a24bef3579a5365967a89e | |
parent | baf8011b07d70a95019e925ecff8e1979899cf5c (diff) | |
download | scummvm-rg350-848b5a5ff5c317a92ba26254b94d273f2aa6bf97.tar.gz scummvm-rg350-848b5a5ff5c317a92ba26254b94d273f2aa6bf97.tar.bz2 scummvm-rg350-848b5a5ff5c317a92ba26254b94d273f2aa6bf97.zip |
ILLUSIONS: Formatting fixes
-rw-r--r-- | engines/illusions/bbdou/menusystem_bbdou.cpp | 6 | ||||
-rw-r--r-- | engines/illusions/pathfinder.cpp | 4 | ||||
-rw-r--r-- | engines/illusions/resources/midiresource.cpp | 3 |
3 files changed, 8 insertions, 5 deletions
diff --git a/engines/illusions/bbdou/menusystem_bbdou.cpp b/engines/illusions/bbdou/menusystem_bbdou.cpp index 9d1b7188db..ab255be40d 100644 --- a/engines/illusions/bbdou/menusystem_bbdou.cpp +++ b/engines/illusions/bbdou/menusystem_bbdou.cpp @@ -55,13 +55,15 @@ void BBDOUMenuSystem::runMenu(MenuChoiceOffsets menuChoiceOffsets, int16 *menuCh } void BBDOUMenuSystem::clearMenus() { - for (int i = 0; i < kBBDOULastMenuIndex; ++i) + for (int i = 0; i < kBBDOULastMenuIndex; ++i) { _menus[i] = 0; + } } void BBDOUMenuSystem::freeMenus() { - for (int i = 0; i < kBBDOULastMenuIndex; ++i) + for (int i = 0; i < kBBDOULastMenuIndex; ++i) { delete _menus[i]; + } } BaseMenu *BBDOUMenuSystem::getMenuById(int menuId) { diff --git a/engines/illusions/pathfinder.cpp b/engines/illusions/pathfinder.cpp index 2f723563e9..777cb4d4bd 100644 --- a/engines/illusions/pathfinder.cpp +++ b/engines/illusions/pathfinder.cpp @@ -83,7 +83,7 @@ PointArray *PathFinder::findPathInternal(Common::Point sourcePt, Common::Point d void PathFinder::postProcess(Common::Point sourcePt, PointArray *foundPath) { // For each three points A, B and C, removes B if the line between A and C is not blocked - for (uint index = 0; index + 2 < foundPath->size(); ++index) { + for (uint index = 0; index + 2 < foundPath->size(); ++index) { PathLine line; line.p0 = index == 0 ? sourcePt : (*foundPath)[index - 1]; line.p1 = (*foundPath)[index + 1]; @@ -91,7 +91,7 @@ void PathFinder::postProcess(Common::Point sourcePt, PointArray *foundPath) { debug("remove point"); foundPath->remove_at(index); } - } + } } bool PathFinder::isLineBlocked(PathLine &line) { diff --git a/engines/illusions/resources/midiresource.cpp b/engines/illusions/resources/midiresource.cpp index 060565b02a..036755b298 100644 --- a/engines/illusions/resources/midiresource.cpp +++ b/engines/illusions/resources/midiresource.cpp @@ -69,8 +69,9 @@ void MidiGroupResource::load(byte *data, uint32 dataSize) { debug("_midiMusicCount: %d; midiMusicOffs: %08X", _midiMusicCount, midiMusicOffs); _midiMusic = new MidiMusic[_midiMusicCount]; stream.seek(midiMusicOffs); - for (uint i = 0; i < _midiMusicCount; ++i) + for (uint i = 0; i < _midiMusicCount; ++i) { _midiMusic[i].load(stream); + } } |