diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2017-04-27 21:33:13 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2017-04-27 21:33:13 -0400 |
commit | 2de1af94cfa794ae5dd7913c797d673b58289949 (patch) | |
tree | 3acb4e822943efb714ff04d4e88307127e34f52e /src/particle.cpp | |
parent | 40f2ab396ccca1a12cc74d18c9758da5bc2f1afc (diff) | |
parent | 00de7a4b0aa48c3cb42c45e0f203902ca034b94c (diff) |
Updated sprites
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 02f3640..a546c0c 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -98,8 +98,6 @@ void ParticleSystem::update(entityx::EntityManager &en, entityx::EventManager &e (void)en; (void)ev; - auto& worldSystem = *game::engine.getSystem<WorldSystem>(); - for (unsigned int i = 0; i < parts.size(); i++) { auto& p = parts[i]; auto& vel = p.velocity; @@ -160,7 +158,7 @@ void ParticleSystem::update(entityx::EntityManager &en, entityx::EventManager &e p.location.y += vel.y * dt; // world collision - auto height = worldSystem.isAboveGround(p.location); + auto height = WorldSystem::isAboveGround(p.location); if (height != 0) { if (p.type == ParticleType::Drop || p.type == ParticleType::SmallPoof) p.location.y = height + 5, p.velocity.y = randGet() % 10 / 40.0f; |