mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +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);
|
alSourcef(source, AL_MAX_GAIN, volume);
|
||||||
if(schan->ManualGain)
|
if(schan->ManualGain)
|
||||||
volume *= GetRolloff(&schan->Rolloff, sqrt(schan->DistanceSqr));
|
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;
|
schan = schan->NextChan;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue