diff options
Diffstat (limited to 'src')
-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; |