From f55c9f415a081a175e48b51db894f23e59ce47a2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 18 Jun 2023 22:28:37 +0100 Subject: fix line lengths --- client/drawing.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/drawing.lua') 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 -- cgit v1.2.3