- Blood: Use sprite angle radians in GameInterface::UpdateSounds().

This commit is contained in:
Mitchell Richters 2022-09-25 23:15:56 +10:00 committed by Christoph Oelckers
parent 633fb01487
commit 0993799967

View file

@ -120,7 +120,7 @@ void GameInterface::UpdateSounds()
if (pPlayer->actor)
{
listener.angle = -pPlayer->actor->spr.int_ang() * float(BAngRadian); // Build uses a period of 2048.
listener.angle = -pPlayer->actor->spr.angle.Radians();
listener.velocity.Zero();
listener.position = GetSoundPos(pPlayer->actor->spr.pos);
listener.valid = true;