mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 18:50:47 +00:00
- fixed bad vector comparison in SW's sound code.
This commit is contained in:
parent
cd5ff69c98
commit
d6b17c0406
2 changed files with 3 additions and 1 deletions
|
@ -312,6 +312,8 @@ struct TVector3
|
|||
{
|
||||
}
|
||||
|
||||
TVector3(nullptr_t) = delete;
|
||||
|
||||
TVector3(const TVector3 &other) = default;
|
||||
|
||||
TVector3 (const Vector2 &xy, vec_t z)
|
||||
|
|
|
@ -563,7 +563,7 @@ void SWSoundEngine::CalcPosVel(int type, const void* source, const float pt[3],
|
|||
}
|
||||
|
||||
|
||||
if ((chanflags & CHANF_LISTENERZ) && campos != nullptr && type != SOURCE_None)
|
||||
if ((chanflags & CHANF_LISTENERZ) && type != SOURCE_None)
|
||||
{
|
||||
pos->Y = campos.Y;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue