From 19ade83b74aa66c80129409d97c2c98fa8b8534c Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 17 Mar 2017 22:17:30 -0400 Subject: bow & arrow draft --- src/attack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/attack.cpp') diff --git a/src/attack.cpp b/src/attack.cpp index fd171a0..4047b0a 100644 --- a/src/attack.cpp +++ b/src/attack.cpp @@ -34,6 +34,7 @@ void AttackSystem::update(entityx::EntityManager& en, entityx::EventManager& ev, for (const auto& a : attacks) { switch (a.type) { case AttackType::ShortSlash: + case AttackType::LongSlash: en.each( [&a](entityx::Entity e, Position& pos, Solid& dim, Health& h) { (void)e; @@ -48,8 +49,6 @@ void AttackSystem::update(entityx::EntityManager& en, entityx::EventManager& ev, } ); break; - case AttackType::LongSlash: - break; default: break; } -- cgit v1.2.3