- SW: Use floating point radians instead of converting integer Build angle into radians for when updating a sound's angle.

This commit is contained in:
Mitchell Richters 2021-12-13 23:37:11 +11:00
parent 8abd67a3b1
commit 6aecc18c35

View file

@ -608,7 +608,7 @@ void GameInterface::UpdateSounds(void)
}
else tang = pp->angle.ang;
listener.angle = float(-tang.asbuild() * BAngRadian); // Build uses a period of 2048.
listener.angle = float(-tang.asrad());
listener.velocity.Zero();
listener.position = GetSoundPos(&pp->pos);
listener.underwater = false;