From f4eee214a79634cdd2e6fe576950524170c01fa9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 27 Jan 2013 17:24:16 +0000 Subject: Support for particle ejector timeout value, do not draw destroyed entity models., --- src/game/base/spacemine.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game/base') 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(); } } -- cgit v1.2.3