2014-05-26 06:17:51 -06:00
|
|
|
--[[
|
|
|
|
Copyright (C) 2014 HarpyWar (harpywar@gmail.com)
|
|
|
|
|
|
|
|
This file is a part of the PvPGN Project http://pvpgn.pro
|
|
|
|
Licensed under the same terms as Lua itself.
|
|
|
|
]]--
|
|
|
|
|
|
|
|
|
|
|
|
-- Loop each second
|
|
|
|
function handle_server_mainloop()
|
|
|
|
-- Tick all timers
|
|
|
|
for t in pairs(__timers) do
|
|
|
|
__timers[t]:tick()
|
|
|
|
end
|
|
|
|
|
2014-06-17 02:53:49 -06:00
|
|
|
-- DEBUG(os.time())
|
2014-05-26 06:17:51 -06:00
|
|
|
end
|
2014-08-02 08:54:17 -06:00
|
|
|
|
|
|
|
|
|
|
|
-- When restart Lua VM
|
|
|
|
function handle_server_rehash()
|
|
|
|
if (config.ghost) then
|
|
|
|
gh_unload()
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|