diff --git a/sti/init.lua b/sti/init.lua index 646a224..82954a7 100644 --- a/sti/init.lua +++ b/sti/init.lua @@ -950,8 +950,8 @@ end function Map.drawLayer(_, layer) local r,g,b,a = lg.getColor() -- if the layer has a tintcolor set - if layer.tintcolor then - r, g, b, a = unpack(layer.tintcolor) + if layer.tintcolor then + local r, g, b, a = unpack(layer.tintcolor) a = a or 255 -- alpha may not be specified lg.setColor(r/255, g/255, b/255, a/255) -- Tiled uses 0-255 -- if a tintcolor is not given just use the current color