summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-06-19 05:30:45 +0100
committerubq323 <ubq323@ubq323.website>2023-06-19 05:30:45 +0100
commit16f350963e8b696690534cab2fd3b6eb681731c1 (patch)
tree8b221d3db7d5b97c4468c95d2d39e52d719505ee /client
parentf55c9f415a081a175e48b51db894f23e59ce47a2 (diff)
fix shadowing issues reported by luacheck
Diffstat (limited to 'client')
-rw-r--r--client/drawing2.lua2
-rw-r--r--client/game.lua1
2 files changed, 1 insertions, 2 deletions
diff --git a/client/drawing2.lua b/client/drawing2.lua
index 800df78..5c39a93 100644
--- a/client/drawing2.lua
+++ b/client/drawing2.lua
@@ -126,7 +126,7 @@ local function set_imesh(im)
shape_mesh:attachAttribute("tile_type",im,"perinstance")
end
-local function draw_map(camera,map)
+local function draw_map(camera,map) -- luacheck: no redefined
shader:send("zoom",camera.zoom)
love.graphics.setShader(shader)
diff --git a/client/game.lua b/client/game.lua
index 2c259a6..081bcb7 100644
--- a/client/game.lua
+++ b/client/game.lua
@@ -345,7 +345,6 @@ local function draw()
end
if ui_mode == "chat" then
- local W,H = love.graphics.getDimensions()
chatmsg_text:set("- "..this_chatmsg)
local tw,th = chatmsg_text:getDimensions()
local y = H-th-30