summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-07 19:10:14 +0200
committerAki <nthirtyone@gmail.com>2018-04-07 19:10:14 +0200
commit6c487d44312dd96fb37825ea3fc7354f108fdfb6 (patch)
treea143847c7b8b3e9daff936108eee17b3ce85eb9e /not/Hero.lua
parent2e88eed328b7c561cbce8c3ae8faebc694a3983e (diff)
downloadroflnauts-6c487d44312dd96fb37825ea3fc7354f108fdfb6.zip
roflnauts-6c487d44312dd96fb37825ea3fc7354f108fdfb6.tar.gz
roflnauts-6c487d44312dd96fb37825ea3fc7354f108fdfb6.tar.bz2
Now uses getFixtures instead of deprecated getFixtureList
Diffstat (limited to 'not/Hero.lua')
-rw-r--r--not/Hero.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index 14e32f1..3037837 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -114,7 +114,7 @@ function Hero:update (dt)
-- Cooldown
self.punchCooldown = self.punchCooldown - dt
if not self.body:isDestroyed() then -- TODO: This is weird
- for _,fixture in pairs(self.body:getFixtureList()) do -- TODO: getFixtures from `PhysicalBody` or similar.
+ for _,fixture in pairs(self.body:getFixtures()) do -- TODO: getFixtures from `PhysicalBody` or similar.
if fixture:getUserData() ~= self then
fixture:setUserData({fixture:getUserData()[1] - dt, fixture:getUserData()[2]})
if fixture:getUserData()[1] < 0 then