- always set the sound listener position to something valid.

Otherwise OpenAL throws lots of warning messages.
This commit is contained in:
Christoph Oelckers 2022-11-20 14:27:17 +01:00
parent dd5834444e
commit bfa7fddcea

View file

@ -318,7 +318,11 @@ void S_GetCamera(DVector3* c, DAngle* ca, sectortype** cs)
if (ud.cameraactor == nullptr)
{
auto p = &ps[screenpeek];
if (c && p->GetActor()) *c = p->posGet();
if (c)
{
if (p->GetActor()) *c = p->posGet();
else c->Zero();
}
if (cs) *cs = p->cursector;
if (ca) *ca = p->angle.ang;
}