From 4c53365c16362156529c7669079e31845384589f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 7 Mar 2009 13:57:09 +0000 Subject: renamed Entity::eventstate() to Entity::state(), introduced Destroyed state --- src/render/particles.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/particles.cc') diff --git a/src/render/particles.cc b/src/render/particles.cc index ef6886a..13b69a4 100644 --- a/src/render/particles.cc +++ b/src/render/particles.cc @@ -229,7 +229,7 @@ void ParticleSystem::draw(float elapsed) { if (particlesystem_entity->type() == core::Entity::Controlable) { core::EntityControlable *ec = static_cast(particlesystem_entity); - if (ec->eventstate() == core::Entity::Docked) { + if (ec->state() == core::Entity::Docked) { if (particlesystem_stream.size()) clear(); return; @@ -263,7 +263,7 @@ void ParticleSystem::draw(float elapsed) } } else if (particlesystem_entity->type() == core::Entity::Controlable) { core::EntityControlable *ec = static_cast(particlesystem_entity); - if ((ec->thrust() > 0.0f) || (ec->eventstate() == core::Entity::ImpulseInitiate) || (ec->eventstate() == core::Entity::Impulse)) { + if ((ec->thrust() > 0.0f) || (ec->state() == core::Entity::ImpulseInitiate) || (ec->state() == core::Entity::Impulse)) { ejector_active = true; } } -- cgit v1.2.3