Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bjcscat committed Oct 31, 2023
1 parent 8b15922 commit 427e89e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lua/wire/cpulib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if CLIENT then

local line, char = 0, 0

if errorPos then
if errorPos then
line = errorPos.Line
char = errorPos.Col

Expand Down Expand Up @@ -734,7 +734,7 @@ local sessionBase, sessionDate
function CPULib.GenerateSN(entityType)
local currentDate = os.date("*t")

local SNDate = (currentDate.year-2007)*500+(currentDate.yday)
local SNDate = (currentDate.year-2007)*500+currentDate.yday
if (not sessionBase) or (SNDate ~= sessionDate) then
sessionBase = math.floor(math.random()*99999)
sessionDate = SNDate
Expand Down
10 changes: 4 additions & 6 deletions lua/wire/stools/cpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if CLIENT then


----------------------------------------------------------------------------
local currentDirectory

local FileBrowser = vgui.Create("wire_expression2_browser" , panel)
panel:AddPanel(FileBrowser)
FileBrowser:Setup("cpuchip")
Expand Down Expand Up @@ -174,7 +174,7 @@ if CLIENT then


----------------------------------------------------------------------------
local modelPanel = WireDermaExts.ModelSelect(panel, "wire_cpu_model", list.Get("Wire_gate_Models"), 2)
WireDermaExts.ModelSelect(panel, "wire_cpu_model", list.Get("Wire_gate_Models"), 2)
panel:AddControl("Label", {Text = ""})


Expand Down Expand Up @@ -291,12 +291,12 @@ if CLIENT then
outc(string.format(" RAM %5d KB",collectgarbage("count") or 0),1,Color(255,255,255,255))

surface.SetDrawColor(240, 120, 0, 255)
surface.DrawRect(16*(5),32*2+14,256,4)
surface.DrawRect(16*5,32*2+14,256,4)
outc("TASK",2,Color(240, 120,0,255))
outc(" STATUS",3,Color(255,255,255,255))

surface.SetDrawColor(240, 120, 0, 255)
surface.DrawRect(16*(4),32*6+14,256,4)
surface.DrawRect(16 * 4, 32 * 6 + 14, 256, 4)
outc("NET",6,Color(240, 120,0,255))
if CPULib.Uploading then
outc(string.format("UP %.3f KB",CPULib.RemainingUploadData/1024),7,Color(255,255,255,255))
Expand Down Expand Up @@ -387,8 +387,6 @@ if CLIENT then
outform(1,1,7,5,"HL-ZASM")
outc(string.format(" Stage %d/7",HCOMP.Stage+1),3,Color(0,0,0,255))
outc(" "..stageNameShort[HCOMP.Stage+1],4,Color(0,0,0,255))
else
--
end
end
end
Expand Down
3 changes: 1 addition & 2 deletions lua/wire/stools/gpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ if SERVER then
function TOOL:Reload(trace)
if trace.Entity:IsPlayer() then return false end

local player = self:GetOwner()
if (trace.Entity:IsValid()) and
(trace.Entity:GetClass() == "gmod_wire_gpu") then
trace.Entity:SetMemoryModel(self:GetClientInfo("memorymodel"))
Expand Down Expand Up @@ -117,7 +116,7 @@ if CLIENT then


----------------------------------------------------------------------------
local currentDirectory

local FileBrowser = vgui.Create("wire_expression2_browser" , panel)
panel:AddPanel(FileBrowser)
FileBrowser:Setup("GPUChip")
Expand Down
3 changes: 1 addition & 2 deletions lua/wire/stools/spu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ if SERVER then
function TOOL:Reload(trace)
if trace.Entity:IsPlayer() then return false end

local player = self:GetOwner()
if (trace.Entity:IsValid()) and
(trace.Entity:GetClass() == "gmod_wire_spu") then
trace.Entity:SetMemoryModel(self:GetClientInfo("memorymodel"))
Expand Down Expand Up @@ -122,7 +121,7 @@ if CLIENT then


----------------------------------------------------------------------------
local currentDirectory

local FileBrowser = vgui.Create("wire_expression2_browser" , panel)
panel:AddPanel(FileBrowser)
FileBrowser:Setup("spuchip")
Expand Down

0 comments on commit 427e89e

Please sign in to comment.