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>2011-07-02 14:45:00 +0000
committerStijn Buys <ingar@osirion.org>2011-07-02 14:45:00 +0000
commitce32ccfad5572f70a9cfbd80a4a3b6f8b3646392 (patch)
tree3b4bb48463cd701b33707f0a29fec746af6ed887 /src/render/renderext.cc
parent4725111a83ee1311e214145af82741b1bfcce4ca (diff)
Dont' draw the player's ship in Cockpit view,
don't let engine sound depend on entity visibility.
Diffstat (limited to 'src/render/renderext.cc')
-rw-r--r--src/render/renderext.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/renderext.cc b/src/render/renderext.cc
index 8ec31bf..51b7976 100644
--- a/src/render/renderext.cc
+++ b/src/render/renderext.cc
@@ -136,12 +136,12 @@ void RenderExt::frame(float elapsed)
state_visible = false;
return;
}
-/*
+
if ((controlable == core::localcontrol()) && (Camera::mode() == Camera::Cockpit)) {
state_visible = false;
return;
}
-*/
+
if ((controlable->state() == core::Entity::NoPower) || (controlable->state() == core::Entity::Destroyed)) {
state_power = false;
}