Fix syntax error in devel/light.lua

develop
lethosor 2015-02-23 18:57:50 -05:00
parent 5c09423aea
commit 83e175f52b
1 changed files with 2 additions and 2 deletions

@ -178,7 +178,7 @@ function LightOverlay:placeLightFov2(pos,radius,color,f,rays)
local cy=0
for dt=0,radius,0.01 do
if math.abs(math.floor(dt*dx)-cx)>0 or math.abs(math.floor(dt*dy)-cy)> 0then
if math.abs(math.floor(dt*dx)-cx)>0 or math.abs(math.floor(dt*dy)-cy)> 0 then
local x=cx+pos.x
local y=cy+pos.y
@ -374,4 +374,4 @@ end
local dyn=true
if #args>0 and args[1]=="static" then dyn=false end
local lview = LightOverlay{ dynamic=dyn}
lview:show()
lview:show()