From 16f350963e8b696690534cab2fd3b6eb681731c1 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 19 Jun 2023 05:30:45 +0100 Subject: fix shadowing issues reported by luacheck --- client/drawing2.lua | 2 +- client/game.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'client') 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 -- cgit v1.2.3