Skip to content

Commit 4cdd7d6

Browse files
committed
maintence
Moved global variables to locals deleted unused content clarified declaration
1 parent f644509 commit 4cdd7d6

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

LuaUI/Widgets/gui_reclaiminfo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ local rangeend = {} --counting radius end point
3636
local b1was = false -- cursor was outside the map?
3737
local vsx, vsy = widgetHandler:GetViewSizes()
3838
local form = 12 --text format depends on screen size
39-
local xstart,ystart = 0
39+
local xstart,ystart = 0, 0
4040
local cmd,xend,yend,x,y,b1,b2
4141
local inMinimap = false --mouse cursor in minimap
4242

effects/roach.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ return {
4040
},
4141
},
4242
blastwing = {
43-
groundflash = {
44-
flashalpha = 1,
45-
flashsize = 108,
46-
ttl = 75,
47-
color = {
48-
[1] = 0.7,
49-
[2] = 0.3,
50-
[3] = 0.1,
51-
},
52-
},
5343
redploom = {
5444
air = true,
5545
class = [[CExpGenSpawner]],

lups/lups.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ local function GameFrame(_,n)
921921
CleanInvalidUnitFX()
922922

923923
--// update FXs
924-
framesToUpdate = thisGameFrame - lastGameFrame
924+
local framesToUpdate = thisGameFrame - lastGameFrame
925925
for _,partFx in pairs(particles) do
926926
if (n>=partFx.dieGameFrame) then
927927
--// lifetime ended

0 commit comments

Comments
 (0)