From 64a7f3d1c25f80838e109920009510322fa71b01 Mon Sep 17 00:00:00 2001 From: GreenBlob Date: Thu, 23 Nov 2023 15:04:42 +0800 Subject: [PATCH] Dealing with luacheck --- mods/ctf/ctf_combat/ctf_combat_mode/init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mods/ctf/ctf_combat/ctf_combat_mode/init.lua b/mods/ctf/ctf_combat/ctf_combat_mode/init.lua index b83fd2fa9f..6dc7d2b50e 100644 --- a/mods/ctf/ctf_combat/ctf_combat_mode/init.lua +++ b/mods/ctf/ctf_combat/ctf_combat_mode/init.lua @@ -4,6 +4,8 @@ local healers = {} ctf_combat_mode = {} +local suffocation_message = "" + local function update(player) local combat = hitters[player] @@ -13,10 +15,6 @@ local function update(player) return end - if not suffocation_message then - local suffocation_message = "" - end - local hud_message = "You are in combat [%ds left] \n%s" hud_message = hud_message:format(combat.time, suffocation_message)