mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Use a range instead of strict equality when deciding head sounds
- See http://forum.zdoom.org/viewtopic.php?f=7&t=51583
This commit is contained in:
parent
2661a94fe9
commit
bf629d2590
1 changed files with 1 additions and 1 deletions
|
@ -2090,7 +2090,7 @@ FMOD_MODE FMODSoundRenderer::SetChanHeadSettings(SoundListener *listener, FMOD::
|
|||
}
|
||||
return oldmode;
|
||||
}
|
||||
else if (cpos == pos)
|
||||
else if ((cpos - pos).LengthSquared() < (0.0004 * 0.0004))
|
||||
{ // Head relative
|
||||
return (oldmode & ~FMOD_3D) | FMOD_2D;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue