summaryrefslogtreecommitdiffhomepage
path: root/not/Ray.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/Ray.lua
parent2b33497121abec53d1fcbce68c9c0d8224079032 (diff)
downloadroflnauts-27a1d0de613a360912d1e9f3a5db7ab044a0b450.zip
roflnauts-27a1d0de613a360912d1e9f3a5db7ab044a0b450.tar.gz
roflnauts-27a1d0de613a360912d1e9f3a5db7ab044a0b450.tar.bz2
Center_* changed to center.* (table)
Diffstat (limited to 'not/Ray.lua')
-rw-r--r--not/Ray.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Ray.lua b/not/Ray.lua
index 16a9bee..3c80440 100644
--- a/not/Ray.lua
+++ b/not/Ray.lua
@@ -35,7 +35,7 @@ function Ray:draw (offset_x, offset_y, scale)
local x, y = self.naut:getPosition()
local m = self.world.map
local dy = m.height
- if y > m.center_y then
+ if y > m.center.y then
dy = -dy
end
love.graphics.line(-x+offset_x,-y+offset_y-dy*0.7,x+offset_x,y+dy*0.7+offset_y)