Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-11-14 17:55:37 +0000
committerStijn Buys <ingar@osirion.org>2012-11-14 17:55:37 +0000
commit14ed501d65ac3adab668669bf91116ec2b8301fa (patch)
tree0b1e6ee6dd6d2a478e4136adc06d6f6c183d69a1
parent4a20c54293e7065ec1f4f6e8c48cdf8c05582a01 (diff)
Mark docked entities as unpowered which prevents entity sounds from being played.
-rw-r--r--src/render/renderext.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/renderext.cc b/src/render/renderext.cc
index 20c4cae..b96bdfe 100644
--- a/src/render/renderext.cc
+++ b/src/render/renderext.cc
@@ -142,6 +142,7 @@ void RenderExt::frame(float elapsed)
if (controlable->state() == core::Entity::Docked) {
state_visible = false;
+ state_power = false;
return;
}