mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-25 01:01:02 +00:00
- always set the sound listener position to something valid.
Otherwise OpenAL throws lots of warning messages.
This commit is contained in:
parent
dd5834444e
commit
bfa7fddcea
1 changed files with 5 additions and 1 deletions
|
@ -318,7 +318,11 @@ void S_GetCamera(DVector3* c, DAngle* ca, sectortype** cs)
|
||||||
if (ud.cameraactor == nullptr)
|
if (ud.cameraactor == nullptr)
|
||||||
{
|
{
|
||||||
auto p = &ps[screenpeek];
|
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 (cs) *cs = p->cursector;
|
||||||
if (ca) *ca = p->angle.ang;
|
if (ca) *ca = p->angle.ang;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue