summaryrefslogtreecommitdiffhomepage
path: root/not/Ray.lua
diff options
context:
space:
mode:
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)