| 1 | --[[ |
| 2 | Copyright (C) 2014 HarpyWar ([email protected]) |
| 3 | |
| 4 | This file is a part of the PvPGN Project http://pvpgn.pro |
| 5 | Licensed under the same terms as Lua itself. |
| 6 | ]]-- |
| 7 | |
| 8 | |
| 9 | -- Loop each second |
| 10 | function handle_server_mainloop() |
| 11 | -- Tick all timers |
| 12 | for t in pairs(__timers) do |
| 13 | __timers[t]:tick() |
| 14 | end |
| 15 | |
| 16 | -- DEBUG(os.time()) |
| 17 | end |
| 18 | |
| 19 | |
| 20 | -- When restart Lua VM |
| 21 | function handle_server_rehash() |
| 22 | if (config.ghost) then |
| 23 | gh_unload() |
| 24 | end |
| 25 | |
| 26 | end |