Avoid spr loading freeze when logging

This commit is contained in:
Eduardo Bart
2012-07-31 01:09:55 -03:00
parent 49a8c750f9
commit 90312965bc
7 changed files with 27 additions and 19 deletions

View File

@@ -1,7 +1,9 @@
function init()
if g_game.getClientVersion() ~= 0 then
load()
end
connect(g_game, { onClientVersionChange = load })
end
function terminate()
disconnect(g_game, { onClientVersionChange = load })
end
function load()

View File

@@ -5,3 +5,4 @@ Module
sandboxed: true
scripts: [tibiafiles.lua]
@onLoad: init()
@onUnload: terminate()