mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
Re-add destroying for unloading, other clean up:
* Cleaned some module terminate code * Fixed "reload all" issues
This commit is contained in:
@@ -61,6 +61,7 @@ function terminate()
|
||||
|
||||
g_keyboard.unbindKeyDown('Ctrl+S')
|
||||
skillsWindow:destroy()
|
||||
skillsButton:destroy()
|
||||
end
|
||||
|
||||
function expForLevel(level)
|
||||
@@ -231,6 +232,8 @@ end
|
||||
|
||||
function checkExpSpeed()
|
||||
local player = g_game.getLocalPlayer()
|
||||
if not player then return end
|
||||
|
||||
local currentExp = player:getExperience()
|
||||
local currentTime = g_clock.seconds()
|
||||
if player.lastExps ~= nil then
|
||||
|
Reference in New Issue
Block a user