From 4cdd7d63f452c8c7f0df1dd9ac19ff18fcc15c8b Mon Sep 17 00:00:00 2001 From: Steel_Blue Date: Fri, 24 Jul 2026 12:45:19 -0400 Subject: [PATCH] maintence Moved global variables to locals deleted unused content clarified declaration --- LuaUI/Widgets/gui_reclaiminfo.lua | 2 +- effects/roach.lua | 10 ---------- lups/lups.lua | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/LuaUI/Widgets/gui_reclaiminfo.lua b/LuaUI/Widgets/gui_reclaiminfo.lua index 6da11f70c0..c02879afc8 100644 --- a/LuaUI/Widgets/gui_reclaiminfo.lua +++ b/LuaUI/Widgets/gui_reclaiminfo.lua @@ -36,7 +36,7 @@ local rangeend = {} --counting radius end point local b1was = false -- cursor was outside the map? local vsx, vsy = widgetHandler:GetViewSizes() local form = 12 --text format depends on screen size -local xstart,ystart = 0 +local xstart,ystart = 0, 0 local cmd,xend,yend,x,y,b1,b2 local inMinimap = false --mouse cursor in minimap diff --git a/effects/roach.lua b/effects/roach.lua index 60496e9858..c2fdd3c5c1 100644 --- a/effects/roach.lua +++ b/effects/roach.lua @@ -40,16 +40,6 @@ return { }, }, blastwing = { - groundflash = { - flashalpha = 1, - flashsize = 108, - ttl = 75, - color = { - [1] = 0.7, - [2] = 0.3, - [3] = 0.1, - }, - }, redploom = { air = true, class = [[CExpGenSpawner]], diff --git a/lups/lups.lua b/lups/lups.lua index 3ab325ce46..d52a9e2e5f 100644 --- a/lups/lups.lua +++ b/lups/lups.lua @@ -921,7 +921,7 @@ local function GameFrame(_,n) CleanInvalidUnitFX() --// update FXs - framesToUpdate = thisGameFrame - lastGameFrame + local framesToUpdate = thisGameFrame - lastGameFrame for _,partFx in pairs(particles) do if (n>=partFx.dieGameFrame) then --// lifetime ended