From 27a1d0de613a360912d1e9f3a5db7ab044a0b450 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Sep 2017 21:16:30 +0200 Subject: Center_* changed to center.* (table) --- not/Ray.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'not/Ray.lua') 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) -- cgit v1.1