summaryrefslogtreecommitdiff
path: root/client/drawing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/drawing.lua')
-rw-r--r--client/drawing.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/drawing.lua b/client/drawing.lua
index e7cb45e..7e9b779 100644
--- a/client/drawing.lua
+++ b/client/drawing.lua
@@ -65,7 +65,8 @@ local function draw_hex(cpos,color,zoom)
love.graphics.polygon("fill",_corners)
if zoom > zthr0 then
love.graphics.setLineWidth(0.1)
- love.graphics.setColor(0,0,0,zoom>zthr1 and 1 or (zoom-zthr0)/(zthr1-zthr0))
+ local a = zoom > zthr1 and 1 or (zoom-zthr0)/(zthr1-zthr0)
+ love.graphics.setColor(0,0,0, a)
love.graphics.polygon("line",_corners)
end
end