aboutsummaryrefslogtreecommitdiffstats
path: root/src/systems/movement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/systems/movement.cpp')
-rw-r--r--src/systems/movement.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/systems/movement.cpp b/src/systems/movement.cpp
index 1a7112a..9948e03 100644
--- a/src/systems/movement.cpp
+++ b/src/systems/movement.cpp
@@ -77,14 +77,6 @@ void MovementSystem::update(entityx::EntityManager &en, entityx::EventManager &e
if (entity.has_component<Wander>()) {
entity.component<Wander>()->script({LuaVariable("vely", direction.y),
LuaVariable("velx", direction.x)});
- /*auto& countdown = entity.component<Wander>()->countdown;
-
- if (countdown > 0) {
- countdown--;
- } else {
- countdown = 5000 + randGet() % 10 * 100;
- direction.x = (randGet() % 3 - 1) * 0.004f;
- }*/
}
}
});