mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 04:00:53 +00:00
- Exhumed: Fixed CalcPosVel not initializing the vel parameter.
This caused spurious errors in OpenAL if the passed values were NANs or INFs. Fixes #183
This commit is contained in:
parent
182b8023ca
commit
3bd48fb8c5
1 changed files with 2 additions and 0 deletions
|
@ -440,6 +440,8 @@ void EXSoundEngine::CalcPosVel(int type, const void* source, const float pt[3],
|
||||||
}
|
}
|
||||||
auto fcampos = GetSoundPos(&campos);
|
auto fcampos = GetSoundPos(&campos);
|
||||||
|
|
||||||
|
if (vel) vel->Zero();
|
||||||
|
|
||||||
if (type == SOURCE_Ambient)
|
if (type == SOURCE_Ambient)
|
||||||
{
|
{
|
||||||
*pos = *(FVector3*)source;
|
*pos = *(FVector3*)source;
|
||||||
|
|
Loading…
Reference in a new issue