diff options
author | Peter Kohaut | 2019-02-21 20:37:23 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-02-23 11:39:54 +0100 |
commit | f70251819aa2e5e9715a25bf8c4ed26394a164cf (patch) | |
tree | 704615311301f80538c560da831d27962b3ca49a /engines/bladerunner/audio_player.cpp | |
parent | 68f9acad0de7758b1c00524e3ae63572f13463ba (diff) | |
download | scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.tar.gz scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.tar.bz2 scummvm-rg350-f70251819aa2e5e9715a25bf8c4ed26394a164cf.zip |
BLADERUNNER: Fixed CppCheck warnings
Rat interaction at UG15 is now working exactly as in the original game.
Before the bridge didn't break if player shot the rat on it.
Diffstat (limited to 'engines/bladerunner/audio_player.cpp')
-rw-r--r-- | engines/bladerunner/audio_player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/audio_player.cpp b/engines/bladerunner/audio_player.cpp index df92be2d42..4507506888 100644 --- a/engines/bladerunner/audio_player.cpp +++ b/engines/bladerunner/audio_player.cpp @@ -76,8 +76,8 @@ void AudioPlayer::adjustVolume(int track, int volume, int delay, bool overrideVo actualVolume = actualVolume * _sfxVolume / 100; } - _tracks[track].volume = volume; - _vm->_audioMixer->adjustVolume(_tracks[track].channel, volume, 60 * delay); + _tracks[track].volume = actualVolume; + _vm->_audioMixer->adjustVolume(_tracks[track].channel, actualVolume, 60 * delay); } void AudioPlayer::adjustPan(int track, int pan, int delay) { |