aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorStrangerke2014-06-05 08:02:43 +0200
committerStrangerke2014-06-05 08:02:43 +0200
commitef902a3fa2d3e4edb4d2d18fab03998bdce2646d (patch)
treea12fe6da1efe305622a75d6369f5949f90a31ab3 /engines/cruise
parent788eca3cd65e99313b56309215f73a5013748870 (diff)
downloadscummvm-rg350-ef902a3fa2d3e4edb4d2d18fab03998bdce2646d.tar.gz
scummvm-rg350-ef902a3fa2d3e4edb4d2d18fab03998bdce2646d.tar.bz2
scummvm-rg350-ef902a3fa2d3e4edb4d2d18fab03998bdce2646d.zip
CRUISE: Remove logically dead code in Sound
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/sound.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/cruise/sound.cpp b/engines/cruise/sound.cpp
index cef67385f9..cc9a17eb9a 100644
--- a/engines/cruise/sound.cpp
+++ b/engines/cruise/sound.cpp
@@ -342,9 +342,7 @@ void AdLibSoundDriver::adjustVolume(int channel, int volume) {
volume = 0;
}
volume += volume / 4;
- if (volume > 127) {
- volume = 127;
- }
+ // The higher possible value for volume is 100
int volAdjust = (channel == 4) ? _sfxVolume : _musicVolume;
volume = (volume * volAdjust) / 128;