diff options
Diffstat (limited to 'src/attack.cpp')
-rw-r--r-- | src/attack.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/attack.cpp b/src/attack.cpp index 16c7f8a..8c5d44a 100644 --- a/src/attack.cpp +++ b/src/attack.cpp @@ -96,7 +96,8 @@ void AttackSystem::update(entityx::EntityManager& en, entityx::EventManager& ev, //point.y -= size.y / 2; // center range height vec2 point = a.pos + a.attack.offset; - vec2 size; + vec2 size (0, a.attack.range.y); + point.y -= size.y / 2; a.attack.script("hit", {LuaVariable("xrange", size.x)}); en.each<Position, Solid, Health>( |