Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/soundext.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/soundext.cc b/src/client/soundext.cc
index e9d2deb..fbed639 100644
--- a/src/client/soundext.cc
+++ b/src/client/soundext.cc
@@ -55,10 +55,11 @@ void render_entity_sound(core::Entity *entity)
return;
}
- if (!ext_render(entity) || (ext_render(entity) && !ext_render(entity)->visible())) {
+ if (!ext_render(entity) || (ext_render(entity)->distance() > core::range::fxdistance) || (!ext_render(entity)->power())) {
if (ext_sound(entity))
delete ext_sound(entity);
return;
+
} else {
if (!ext_sound(entity)) {
new SoundExt(entity);