- fixed bad vector comparison in SW's sound code.

This commit is contained in:
Christoph Oelckers 2020-03-01 09:18:23 +01:00
parent cd5ff69c98
commit d6b17c0406
2 changed files with 3 additions and 1 deletions

View file

@ -312,6 +312,8 @@ struct TVector3
{
}
TVector3(nullptr_t) = delete;
TVector3(const TVector3 &other) = default;
TVector3 (const Vector2 &xy, vec_t z)

View file

@ -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;
}