mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-17 18:01:39 +00:00
Remove an unnecessary cast
This commit is contained in:
parent
07a50c604e
commit
73d8659f23
1 changed files with 1 additions and 1 deletions
|
@ -851,7 +851,7 @@ void OpenALSoundRenderer::SetSfxVolume(float volume)
|
|||
alSourcef(source, AL_MAX_GAIN, volume);
|
||||
if(schan->ManualGain)
|
||||
volume *= GetRolloff(&schan->Rolloff, sqrt(schan->DistanceSqr));
|
||||
alSourcef(source, AL_GAIN, volume * ((FSoundChan*)schan)->Volume);
|
||||
alSourcef(source, AL_GAIN, volume * schan->Volume);
|
||||
}
|
||||
schan = schan->NextChan;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue