From be64dffe9e3354fda6220a1b25251e1664cd71cc Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 3 Apr 2017 21:50:40 +0200 Subject: Testing if body isn't destroyed in PhysicalBody's update --- not/Hero.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'not/Hero.lua') diff --git a/not/Hero.lua b/not/Hero.lua index 47c6e33..1b84b1c 100644 --- a/not/Hero.lua +++ b/not/Hero.lua @@ -85,8 +85,6 @@ end -- Update callback of `Hero` -- TODO: Explode this function (method, kek), move controler-related parts to `not.Player`, physics parts to `not.PhysicalBody`. function Hero:update (dt) - -- hotfix? for destroyed bodies - if self.body:isDestroyed() then return end PhysicalBody.update(self, dt) -- locals local x, y = self.body:getLinearVelocity() -- cgit v1.1