mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
CSoundHandler: fix "unmutable" game (#588)
After a sound fade, now uses current volume instead of setting it to 100. Fixes #3050.
This commit is contained in:
parent
a7cd668a80
commit
1afbdf7027
@ -175,7 +175,7 @@ int CSoundHandler::ambientDistToVolume(int distance) const
|
||||
void CSoundHandler::ambientStopSound(std::string soundId)
|
||||
{
|
||||
stopSound(ambientChannels[soundId]);
|
||||
setChannelVolume(ambientChannels[soundId], 100);
|
||||
setChannelVolume(ambientChannels[soundId], volume);
|
||||
}
|
||||
|
||||
// Plays a sound, and return its channel so we can fade it out later
|
||||
|
Loading…
x
Reference in New Issue
Block a user