diff options
author | Aki <nthirtyone@gmail.com> | 2017-04-03 21:50:40 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-04-03 21:50:40 +0200 |
commit | be64dffe9e3354fda6220a1b25251e1664cd71cc (patch) | |
tree | bb641c54202560ee8a60f2540fbb42d85f4f0973 /not/Hero.lua | |
parent | b4389dfb590862b50cc6c9ce59d3fcef9bd046b3 (diff) | |
download | roflnauts-be64dffe9e3354fda6220a1b25251e1664cd71cc.zip roflnauts-be64dffe9e3354fda6220a1b25251e1664cd71cc.tar.gz roflnauts-be64dffe9e3354fda6220a1b25251e1664cd71cc.tar.bz2 |
Testing if body isn't destroyed in PhysicalBody's update
Diffstat (limited to 'not/Hero.lua')
-rw-r--r-- | not/Hero.lua | 2 |
1 files changed, 0 insertions, 2 deletions
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() |