From aa1d7df986d8b57b3a386c7bb8054b7d33885104 Mon Sep 17 00:00:00 2001 From: Gajo Petrovic Date: Sat, 9 Mar 2024 08:11:55 +0900 Subject: [PATCH] fix luacheck --- .luacheckrc | 1 + scen_edit/view/floating/status_window.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index 579221e5..db2cd280 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -30,6 +30,7 @@ globals = { "UnitDefs", "UnitDefNames", "FeatureDefs", "FeatureDefNames", "WeaponDefs", "WeaponDefNames", "LOG", "KEYSYMS", "CMD", "Script", "SendToUnsynced", "Platform", "include", + "Engine", -- Gadgets "GG", "gadgetHandler", "gadget", -- Widgets diff --git a/scen_edit/view/floating/status_window.lua b/scen_edit/view/floating/status_window.lua index 48667cfa..aaa32853 100644 --- a/scen_edit/view/floating/status_window.lua +++ b/scen_edit/view/floating/status_window.lua @@ -92,7 +92,7 @@ function StatusWindow:_UpdateMemory() -- TODO: Act on it a bit better and automatically clear the undo-redo stack instead of prompting the user to do stuff. local color = SB.conf.STATUS_TEXT_OK_COLOR - -- If the BIGMEM BAR105 engine build is used, then we dont ever really need to warn the user. + -- If the BIGMEM BAR105 engine build is used, then we dont ever really need to warn the user. local memoryWarnLevel = 500 if string.find(Engine.versionFull,"BIGMEM", nil, true) then memoryWarnLevel = 16000 end if memory > memoryWarnLevel then