Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/soundext.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/soundext.cc b/src/client/soundext.cc
index 5ebcd99..7af0c4b 100644
--- a/src/client/soundext.cc
+++ b/src/client/soundext.cc
@@ -192,6 +192,8 @@ void SoundExt::frame(float elapsed)
float speed = 0;
float pitch = 1.0f;
float gain = 0.0;
+
+ // FIXME adjust for modelscale
float r = (entity()->model() ? entity()->model()->box().max().x() : entity()->radius());
math::Vector3f velocity;
@@ -274,7 +276,7 @@ void SoundExt::frame(float elapsed)
audio::update_source(state_engineeventsource,
entity->location() - entity->axis().forward() * r , velocity);
}
-
+
for (Sounds::iterator it = state_soundlist.begin(); it != state_soundlist.end(); it++) {
client::Sound *sound = *it;
if (sound->source()) {