[Scummvm-cvs-logs] scummvm master -> ef902a3fa2d3e4edb4d2d18fab03998bdce2646d
Strangerke
Strangerke at scummvm.org
Thu Jun 5 08:07:43 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ef902a3fa2 CRUISE: Remove logically dead code in Sound
Commit: ef902a3fa2d3e4edb4d2d18fab03998bdce2646d
https://github.com/scummvm/scummvm/commit/ef902a3fa2d3e4edb4d2d18fab03998bdce2646d
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-06-05T08:02:43+02:00
Commit Message:
CRUISE: Remove logically dead code in Sound
Changed paths:
engines/cruise/sound.cpp
diff --git a/engines/cruise/sound.cpp b/engines/cruise/sound.cpp
index cef6738..cc9a17e 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;
More information about the Scummvm-git-logs
mailing list