From 0b54403c6ac20f2cdd1454e90e9006379f374ec0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 18 Nov 2012 21:52:30 +0000 Subject: Added comment. --- src/client/soundext.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/soundext.cc') 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()) { -- cgit v1.2.3