From fcf865fa7fbdf17d8ed875606c21e34bb3723c8d Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 28 Feb 2025 08:50:31 +0800 Subject: fix: inappropriate global function --- logic/controller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logic/controller.lua') diff --git a/logic/controller.lua b/logic/controller.lua index 26e2be7..c1866ad 100644 --- a/logic/controller.lua +++ b/logic/controller.lua @@ -37,7 +37,7 @@ local function playerPressKeysToMoves(dt) end end -function playerClickMouseToShoot(dt) +local function playerClickMouseToShoot(dt) if love.mouse.isDown(1) then if G.player.shootCooldown and G.player.shootCooldown > G.time then return end -- cgit v1.2.3