summaryrefslogtreecommitdiff
path: root/client/drawing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/drawing.lua')
-rw-r--r--client/drawing.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/drawing.lua b/client/drawing.lua
index 31c5893..e3dc751 100644
--- a/client/drawing.lua
+++ b/client/drawing.lua
@@ -38,6 +38,8 @@ local colors = {
c(64,64,255), -- blue
c(192,0,192), -- purple
c(128,128,128), -- grey
+
+ c(0xe7,0x9e,0), -- ubqorange
}
-- precompute sins and cosines
local _coss,_sins = {},{}
@@ -59,7 +61,7 @@ local function draw_hex(cpos,color,zoom)
_corners[2*i ] = y
end
-- love.graphics.setColor(love.math.colorFromBytes(0xe7,0x9e,0))
- love.graphics.setColor(color or {0.91,0.62,0})
+ love.graphics.setColor(color)
love.graphics.polygon("fill",_corners)
if zoom > zthr0 then
love.graphics.setLineWidth(0.1)
@@ -85,10 +87,8 @@ local function draw_map(camera,map)
_h:init(q,r)
_h:to_pos(_p)
local t = map:at(_h)
- if type(t) == "number" then
+ if t ~= nil and t ~= 0 then
draw_hex(_p,colors[t],camera.zoom)
- elseif t then
- draw_hex(_p,nil,camera.zoom)
end
end
end