diff options
author | Stijn Buys <ingar@osirion.org> | 2012-11-18 21:52:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-11-18 21:52:30 +0000 |
commit | 0b54403c6ac20f2cdd1454e90e9006379f374ec0 (patch) | |
tree | 72a8064831ef71f644e6fb58d5d3fd98898b0157 | |
parent | dddfc3cb00c9462d6d38781d3a38c9d7cfbd04d3 (diff) |
Added comment.
-rw-r--r-- | src/client/soundext.cc | 4 |
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()) { |