diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-28 08:50:31 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-28 08:50:31 +0800 |
| commit | fcf865fa7fbdf17d8ed875606c21e34bb3723c8d (patch) | |
| tree | 4cf0bb40964e03cf3ac1c03c5e30b0f32374fd7c /logic/controller.lua | |
| parent | ed16d45e9e42042054c10a287932e62fb77d5d3f (diff) | |
fix: inappropriate global function
Diffstat (limited to 'logic/controller.lua')
| -rw-r--r-- | logic/controller.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
