From ef902a3fa2d3e4edb4d2d18fab03998bdce2646d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 5 Jun 2014 08:02:43 +0200 Subject: CRUISE: Remove logically dead code in Sound --- engines/cruise/sound.cpp | 4 +--- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3