summaryrefslogtreecommitdiff
path: root/client/drawing.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-06-18 22:28:37 +0100
committerubq323 <ubq323@ubq323.website>2023-06-18 22:28:37 +0100
commitf55c9f415a081a175e48b51db894f23e59ce47a2 (patch)
treeee63f98d5c4f1a2a11e9800ced9c2861eb3085a7 /client/drawing.lua
parent598bd4332deddd5f4c506689cbd136f495835ea7 (diff)
fix line lengths
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