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>2013-01-27 17:24:16 +0000
committerStijn Buys <ingar@osirion.org>2013-01-27 17:24:16 +0000
commitf4eee214a79634cdd2e6fe576950524170c01fa9 (patch)
treec00f9685202c5c4ae502e2a632d341643e5b1ba8 /src/game/base
parentfd6663f0d3a4e860c14a0f3279fcce06d27fa283 (diff)
Support for particle ejector timeout value,
do not draw destroyed entity models.,
Diffstat (limited to 'src/game/base')
-rw-r--r--src/game/base/spacemine.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/base/spacemine.cc b/src/game/base/spacemine.cc
index 2a45630..2e268ce 100644
--- a/src/game/base/spacemine.cc
+++ b/src/game/base/spacemine.cc
@@ -128,8 +128,9 @@ void SpaceMine::frame(const unsigned long elapsed)
if (body()) {
reset();
}
-
- if (spacemine_detonated_timestamp + 5.0f < core::game()->time()) {
+
+ // stay alive for 10 more seconds while explosion particles are drawn
+ if (spacemine_detonated_timestamp + 10.0f < core::game()->time()) {
die();
}
}