diff options
author | ubq323 <ubq323@ubq323.website> | 2023-02-13 13:05:55 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-02-13 13:05:55 +0000 |
commit | 7e0a520f8efd748a13c277b3c39514aee07c74d2 (patch) | |
tree | ba92438a2c2008103bb5af6acb0e01538fa15dce /client/drawing.lua | |
parent | 0abc0b9b7928cd72b1c92b3af9f30674397013d1 (diff) |
change blank and ubqorange tiles from false and true to 0 and 9
Diffstat (limited to 'client/drawing.lua')
-rw-r--r-- | client/drawing.lua | 8 |
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 |