diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-27 17:24:16 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-27 17:24:16 +0000 |
commit | f4eee214a79634cdd2e6fe576950524170c01fa9 (patch) | |
tree | c00f9685202c5c4ae502e2a632d341643e5b1ba8 /src/render/particlesystemscript.cc | |
parent | fd6663f0d3a4e860c14a0f3279fcce06d27fa283 (diff) |
Support for particle ejector timeout value,
do not draw destroyed entity models.,
Diffstat (limited to 'src/render/particlesystemscript.cc')
-rw-r--r-- | src/render/particlesystemscript.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/particlesystemscript.cc b/src/render/particlesystemscript.cc index 0fad772..f78fa88 100644 --- a/src/render/particlesystemscript.cc +++ b/src/render/particlesystemscript.cc @@ -212,6 +212,10 @@ ParticleSystemScript *ParticleSystemScript::load(const std::string &label) ejector->set_lifespan((unsigned long) l); continue; + } else if (inifile.got_key_long("timeout", l)) { + ejector->set_timeout((unsigned long) l); + continue; + } else if (inifile.got_key_color("color", ejector->get_color())) { continue; |