mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- Exhumed: don't pass uninitialized data to the sound engine.
This was creating very noisy warnings.
This commit is contained in:
parent
1d79d0cee3
commit
ec9ed9588c
1 changed files with 2 additions and 1 deletions
|
@ -505,7 +505,7 @@ void GameInterface::UpdateSounds()
|
|||
DAngle ang;
|
||||
if (nSnakeCam > -1)
|
||||
{
|
||||
Snake *pSnake = &SnakeList[nSnakeCam];
|
||||
Snake* pSnake = &SnakeList[nSnakeCam];
|
||||
pos = pSnake->pSprites[0]->spr.pos;
|
||||
ang = pSnake->pSprites[0]->spr.Angles.Yaw;
|
||||
}
|
||||
|
@ -514,6 +514,7 @@ void GameInterface::UpdateSounds()
|
|||
pos = pActor->spr.pos;
|
||||
ang = pActor->spr.Angles.Yaw;
|
||||
}
|
||||
else pos.Zero();
|
||||
SoundListener listener;
|
||||
listener.angle = float(-ang.Radians()); // Build uses a period of 2048.
|
||||
listener.velocity.Zero();
|
||||
|
|
Loading…
Reference in a new issue