Another bug fix

master
AlmTech 5 years ago
parent 46c431fa63
commit a482c6515e
  1. 11
      gamemode/cl_init.lua
  2. 3
      gamemode/init.lua
  3. 12
      gamemode/shared.lua

@ -12,7 +12,16 @@ if CLIENT then
-- Add all core files
function Quantum.Client.Load()
local fol = GM.FolderName .. "/gamemode/core/"
local fol = GM.FolderName .. "/gamemode/core/"
-- Shared files
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do
include( fol .. file )
end
Quantum.Shared.Init()
-- CLient files
local clFiles = file.Find( fol .. "/client/cl_*.lua", "LUA" )

@ -21,7 +21,8 @@ if SERVER then
-- Shared files
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do
AddCSLuaFile( fol .. file )
AddCSLuaFile( fol .. file )
include( fol .. file )
end
-- CLient files

@ -10,14 +10,4 @@ GM.Author = "AlmTech"
GM.Email = "elias@almtech.se"
GM.Website = "N/A"
Quantum = {}
Quantum.Shared = {}
Quantum.Shared.Init = function()
local shFiles = file.Find( fol .. "/sh_*.lua", "LUA" )
for _, file in pairs( shFiles ) do
include( fol .. file )
end
end
Quantum.Shared.Init()
Quantum = {}
Loading…
Cancel
Save