diff options
author | Stijn Buys <ingar@osirion.org> | 2012-12-26 20:30:28 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-12-26 20:30:28 +0000 |
commit | 92dafc75bba246aed3f20a558a9c4eed13a1e8a9 (patch) | |
tree | 25417119740f2a6811bb6f1c23e9c637d3674a45 | |
parent | c074fdfefc6b0b7e243887f3a3783c7276d61bd7 (diff) |
Corrected engine loop sound location for scaled models.
-rw-r--r-- | src/client/soundext.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/soundext.cc b/src/client/soundext.cc index 0fa8d54..aeb3bd1 100644 --- a/src/client/soundext.cc +++ b/src/client/soundext.cc @@ -193,8 +193,7 @@ void SoundExt::frame(float elapsed) float pitch = 1.0f; float gain = 0.0; - // FIXME adjust for modelscale - float r = (entity()->model() ? entity()->model()->box().max().x() : entity()->radius()); + float r = (entity()->model() ? entity()->model()->box().max().x() * entity()->radius() / entity()->model()->radius() : entity()->radius()); math::Vector3f velocity; |