aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-22 21:00:51 -0400
committerPaul Gilbert2016-09-22 21:00:51 -0400
commit1d816d65bf23b711c21719a45d0572fb770c7f7f (patch)
treea940f4a27ec06f99f8283a32c646c98c29337c14
parent5b7f005ba20e05b666c8ccb14874ed8d3a35dc98 (diff)
downloadscummvm-rg350-1d816d65bf23b711c21719a45d0572fb770c7f7f.tar.gz
scummvm-rg350-1d816d65bf23b711c21719a45d0572fb770c7f7f.tar.bz2
scummvm-rg350-1d816d65bf23b711c21719a45d0572fb770c7f7f.zip
XEEN: Formatting fixes
-rw-r--r--engines/xeen/interface.cpp3
-rw-r--r--engines/xeen/worldofxeen/clouds_cutscenes.cpp88
2 files changed, 47 insertions, 44 deletions
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 2f51e96f26..3c3b572518 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -1429,8 +1429,7 @@ void Interface::drawMiniMap() {
// Draw the direction arrow
res._globalSprites.draw(window1, party._mazeDirection + 1,
Common::Point(267, 36));
- }
- else {
+ } else {
frame2 = (frame2 + 2) % 8;
// First draw the default surface bases for each cell to show
diff --git a/engines/xeen/worldofxeen/clouds_cutscenes.cpp b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
index 74fabe507b..e257215b74 100644
--- a/engines/xeen/worldofxeen/clouds_cutscenes.cpp
+++ b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
@@ -42,46 +42,46 @@ bool CloudsCutscenes::showCloudsTitle() {
SpriteResource logo[2] = {
SpriteResource("logo.vga"), SpriteResource("logo1.vga")
};
-sound.playFX(1);
+ sound.playFX(1);
-for (int idx = 0; idx < 80; ++idx) {
- screen.restoreBackground();
- logo[idx / 65].draw(screen, idx % 65);
- screen.update();
+ for (int idx = 0; idx < 80; ++idx) {
+ screen.restoreBackground();
+ logo[idx / 65].draw(screen, idx % 65);
+ screen.update();
- switch (idx) {
- case 37:
- sound.playFX(0);
- sound.playFX(53);
- sound.playSound("fire.voc");
- break;
- case 52:
- case 60:
- sound.playFX(3);
- break;
- case 64:
- sound.playFX(2);
- break;
- case 66:
- sound.playFX(52);
- sound.playSound("meangro&.voc");
- break;
- default:
- break;
- }
+ switch (idx) {
+ case 37:
+ sound.playFX(0);
+ sound.playFX(53);
+ sound.playSound("fire.voc");
+ break;
+ case 52:
+ case 60:
+ sound.playFX(3);
+ break;
+ case 64:
+ sound.playFX(2);
+ break;
+ case 66:
+ sound.playFX(52);
+ sound.playSound("meangro&.voc");
+ break;
+ default:
+ break;
+ }
- WAIT(2);
-}
+ WAIT(2);
+ }
-screen.restoreBackground();
-screen.update();
-WAIT(30);
+ screen.restoreBackground();
+ screen.update();
+ WAIT(30);
-screen.fadeOut(8);
-logo[0].clear();
-logo[1].clear();
+ screen.fadeOut(8);
+ logo[0].clear();
+ logo[1].clear();
-return true;
+ return true;
}
bool CloudsCutscenes::showCloudsIntro() {
@@ -410,30 +410,34 @@ const char *const CloudsCutscenes::_INTRO_VOCS[14] = {
"xeenlaff.voc", "tiger2&.voc", "crodo5.voc", "crodo6.voc",
"xeenlaff.voc", "tiger2&.voc"
};
-const int CloudsCutscenes::_INTRO_FRAMES_LOOKUP[14] = { 0, 1, 0, 2, 0, 3, 4, 5, 0, 0, 6, 7, 0, 0 };
+
+const int CloudsCutscenes::_INTRO_FRAMES_LOOKUP[14] = {
+ 0, 1, 0, 2, 0, 3, 4, 5, 0, 0, 6, 7, 0, 0
+};
+
const int CloudsCutscenes::_INTRO_FRAMES_VALS[8][32] = {
{
4, 2, 3, 0, 2, 3, 2, 0, 1, 1, 3, 4, 3, 2, 4, 2,
3, 4, 3, 4, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
- },{
+ }, {
3, 2, 3, 2, 4, 3, 0, 3, 2, 2, 3, 1, 2, 3, 3, 3,
2, 3, 2, 3, 2, 0, 3, 2, 0, 0, 0, 0, 0, 0, 2, 4
-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