Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sti/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down