aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/pac
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-08-24 20:32:34 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-08-24 20:32:34 -0400
commit233e478e40d72a091f70f18dc6846066a4f52016 (patch)
treecf34be714088889731736c81bd44e198c792625a /gamemode/core/pac
parent61bc16dae5a1b61bcd237d9f0be36125829d95b1 (diff)
downloadartery-233e478e40d72a091f70f18dc6846066a4f52016.tar.gz
artery-233e478e40d72a091f70f18dc6846066a4f52016.tar.bz2
artery-233e478e40d72a091f70f18dc6846066a4f52016.zip
Fix all linter warnings
Diffstat (limited to 'gamemode/core/pac')
-rw-r--r--gamemode/core/pac/cl_pac.lua4
-rw-r--r--gamemode/core/pac/sv_pac.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/gamemode/core/pac/cl_pac.lua b/gamemode/core/pac/cl_pac.lua
index 7e149ae..fc55eb1 100644
--- a/gamemode/core/pac/cl_pac.lua
+++ b/gamemode/core/pac/cl_pac.lua
@@ -65,8 +65,8 @@ end
net.Receive("artery_downloadpac",function()
local pac_name = net.ReadString()
local pac_txt = net.ReadString()
- local pac_hash = net.ReadUInt(32)
- local filepath = string.format(CLIENT_PAC_DIR .."/%s.txt",pac_name)
+ --local pac_hash = net.ReadUInt(32)
+ local filepath = string.format(CLIENT_PAC_DIR .. "/%s.txt",pac_name)
file.Write(filepath,pac_txt)
end)
diff --git a/gamemode/core/pac/sv_pac.lua b/gamemode/core/pac/sv_pac.lua
index 6b60340..e9492e9 100644
--- a/gamemode/core/pac/sv_pac.lua
+++ b/gamemode/core/pac/sv_pac.lua
@@ -59,7 +59,7 @@ end
local pachashes = {}
local function loadhashes()
for path,part in pairs(pacsources) do
- local files,_ = file.Find(path.."*",part)
+ local files,_ = file.Find(path .. "*",part)
for _,v in ipairs(files) do
local filepath = string.format("%s%s",path,v)
local filetext = file.Read(filepath,part)