diff options
Diffstat (limited to 'src/systems/movement.cpp')
-rw-r--r-- | src/systems/movement.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systems/movement.cpp b/src/systems/movement.cpp index 00baa40..7ff9966 100644 --- a/src/systems/movement.cpp +++ b/src/systems/movement.cpp @@ -46,9 +46,8 @@ void MovementSystem::update(entityx::EntityManager &en, entityx::EventManager &e auto ppos = PlayerSystem::getPosition(); if (ppos.x > position.x && ppos.x < position.x + entity.component<Solid>()->width) { if (entity.has_component<Aggro>()) { - auto dim = entity.component<Solid>(); - ev.emit<AttackEvent>(vec2(position.x + dim->width, position.y + dim->height), - AttackType::ShortSlash, false); + //auto dim = entity.component<Solid>(); + //ev.emit<AttackEvent>(vec2(position.x + dim->width, position.y + dim->height), ATTACKKKKKK, false); /*auto& h = entity.component<Health>()->health; if (h > 0) { fight = true; |