Applied some ScummVM formatting conventions.

svn-id: r17430
This commit is contained in:
Torbjörn Andersson 2005-04-07 08:57:40 +00:00
parent e6395f1eef
commit 49bab70ded
3 changed files with 52 additions and 52 deletions

View File

@ -440,7 +440,7 @@ Cutaway::ObjectType Cutaway::getObjectType(CutawayObject &object) {
objectType = OBJECT_TYPE_NO_ANIMATION;
}
switch(object.objectNumber) {
switch (object.objectNumber) {
case -2:
// Text to be spoken
objectType = OBJECT_TYPE_TEXT_SPEAK;

View File

@ -71,17 +71,17 @@ GameList Engine_QUEEN_gameList() {
}
GameSettings determineTarget(uint32 size) {
switch(size) {
case 3724538: //regular demo
case 3732177:
return queen_setting[1];
break;
case 1915913: //interview demo
return queen_setting[2];
break;
default: //non-demo
return queen_setting[0];
break;
switch (size) {
case 3724538: //regular demo
case 3732177:
return queen_setting[1];
break;
case 1915913: //interview demo
return queen_setting[2];
break;
default: //non-demo
return queen_setting[0];
break;
}
return queen_setting[0];
}

View File

@ -47,37 +47,37 @@ Sound *Sound::giveSound(SoundMixer *mixer, QueenEngine *vm, uint8 compression) {
if (!mixer->isReady())
return new SilentSound(mixer, vm);
switch(compression) {
case COMPRESSION_NONE:
return new SBSound(mixer, vm);
break;
case COMPRESSION_MP3:
#ifndef USE_MAD
warning("Using MP3 compressed datafile, but MP3 support not compiled in");
return new SilentSound(mixer, vm);
#else
return new MP3Sound(mixer, vm);
#endif
break;
case COMPRESSION_OGG:
#ifndef USE_VORBIS
warning("Using OGG compressed datafile, but OGG support not compiled in");
return new SilentSound(mixer, vm);
#else
return new OGGSound(mixer, vm);
#endif
break;
case COMPRESSION_FLAC:
#ifndef USE_FLAC
warning("Using FLAC compressed datafile, but FLAC support not compiled in");
return new SilentSound(mixer, vm);
#else
return new FLACSound(mixer, vm);
#endif
break;
default:
warning("Unknown compression type");
return new SilentSound(mixer, vm);
switch (compression) {
case COMPRESSION_NONE:
return new SBSound(mixer, vm);
break;
case COMPRESSION_MP3:
#ifndef USE_MAD
warning("Using MP3 compressed datafile, but MP3 support not compiled in");
return new SilentSound(mixer, vm);
#else
return new MP3Sound(mixer, vm);
#endif
break;
case COMPRESSION_OGG:
#ifndef USE_VORBIS
warning("Using OGG compressed datafile, but OGG support not compiled in");
return new SilentSound(mixer, vm);
#else
return new OGGSound(mixer, vm);
#endif
break;
case COMPRESSION_FLAC:
#ifndef USE_FLAC
warning("Using FLAC compressed datafile, but FLAC support not compiled in");
return new SilentSound(mixer, vm);
#else
return new FLACSound(mixer, vm);
#endif
break;
default:
warning("Unknown compression type");
return new SilentSound(mixer, vm);
}
}
@ -161,15 +161,15 @@ void Sound::playSong(int16 songNum) {
int override = (_vm->resource()->isDemo()) ? _songDemo[songNum - 1].override : _song[songNum - 1].override;
switch (override) {
// Override all songs
case 1:
break;
// Alter song settings (such as volume) and exit
case 2:
_vm->music()->toggleVChange();
default:
return;
break;
// Override all songs
case 1:
break;
// Alter song settings (such as volume) and exit
case 2:
_vm->music()->toggleVChange();
default:
return;
break;
}
_lastOverride = songNum;