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-25 21:30:16 +0000
committerStijn Buys <ingar@osirion.org>2012-11-25 21:30:16 +0000
commit52b393e9692c3a93acdb207c53dbbf5e9df13e75 (patch)
tree51388c412495c47e355608f8a462d74e5a07ce7d /src/render/particles.cc
parent71503d65f1099d9f34010de98d377f8f2f5e474e (diff)
Draw particles on projectile models.
Diffstat (limited to 'src/render/particles.cc')
-rw-r--r--src/render/particles.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/particles.cc b/src/render/particles.cc
index 4624539..6681a4f 100644
--- a/src/render/particles.cc
+++ b/src/render/particles.cc
@@ -384,6 +384,8 @@ void ParticleSystem::draw(const float elapsed)
if ((controlable->thrust() > 0.0f) || (controlable->state() == core::Entity::ImpulseInitiate) || (controlable->state() == core::Entity::Impulse)) {
ejector_active = true;
}
+ } else if (particlesystem_entity->type() == core::Entity::Projectile) {
+ ejector_active = true;
}
}