mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
TWP: Use explicit cast in AudioSystem. PVS-Studio V636
This commit is contained in:
parent
a7be536609
commit
f3e512c34f
@ -147,7 +147,7 @@ float AudioSystem::getMasterVolume() const {
|
||||
void AudioSystem::updateVolume(AudioSlot *slot) {
|
||||
float vol = _masterVolume * slot->volume;
|
||||
if (slot->fadeInTimeMs) {
|
||||
vol *= (g_twp->_mixer->getElapsedTime(slot->handle).msecs() / slot->total);
|
||||
vol *= (((float)g_twp->_mixer->getElapsedTime(slot->handle).msecs()) / slot->total);
|
||||
}
|
||||
if (slot->fadeOutTimeMs) {
|
||||
float startFade = slot->total - slot->fadeOutTimeMs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user