summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-02 21:16:30 +0200
committerAki <nthirtyone@gmail.com>2017-09-02 21:16:30 +0200
commit27a1d0de613a360912d1e9f3a5db7ab044a0b450 (patch)
treefa9b99f8786a93a7019adda0cf5182c63b7e19de /not/Hero.lua
parent2b33497121abec53d1fcbce68c9c0d8224079032 (diff)
downloadroflnauts-27a1d0de613a360912d1e9f3a5db7ab044a0b450.zip
roflnauts-27a1d0de613a360912d1e9f3a5db7ab044a0b450.tar.gz
roflnauts-27a1d0de613a360912d1e9f3a5db7ab044a0b450.tar.bz2
Center_* changed to center.* (table)
Diffstat (limited to 'not/Hero.lua')
-rw-r--r--not/Hero.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/not/Hero.lua b/not/Hero.lua
index 039aeb8..71cfb5b 100644
--- a/not/Hero.lua
+++ b/not/Hero.lua
@@ -87,8 +87,8 @@ function Hero:update (dt)
-- TODO: World/Map function for testing if Point is inside playable area.
local m = self.world.map
local x, y = self:getPosition()
- if (x < m.center_x - m.width*1.5 or x > m.center_x + m.width*1.5 or
- y < m.center_y - m.height*1.5 or y > m.center_y + m.height*1.5) and
+ if (x < m.center.x - m.width*1.5 or x > m.center.x + m.width*1.5 or
+ y < m.center.y - m.height*1.5 or y > m.center.y + m.height*1.5) and
self.isAlive
then
self:die()