Save some tokens in _rast

This commit is contained in:
Pyrex 2023-01-02 20:04:29 -08:00
parent 617e7b3948
commit 64c8bca3c0

View File

@ -137,10 +137,7 @@ function _rast(
end end
local dx,dy=abs(x1-x0),abs(y1-y0) local dx,dy=abs(x1-x0),abs(y1-y0)
local sx=-1 local sx,sy=sgn(x1-x0),sgn(y1-y0)
local sy=-1
if (x0<x1) sx=1
if (y0<y1) sy=1
local done,err local done,err
if dx>dy then if dx>dy then