mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
Just use g_configs.unload(config) to unload config files.
Avoids concurrent modification errors.
This commit is contained in:
@@ -157,6 +157,7 @@ function table.tostring(t)
|
||||
local maxn = #t
|
||||
local str = ""
|
||||
for k,v in pairs(t) do
|
||||
v = tostring(v)
|
||||
if k == maxn and k ~= 1 then
|
||||
str = str .. " and " .. v
|
||||
elseif maxn > 1 and k ~= 1 then
|
||||
|
||||
@@ -783,8 +783,10 @@ function setupViewMode(mode)
|
||||
gameRootPanel:fill('parent')
|
||||
gameLeftPanel:setImageColor('alpha')
|
||||
gameRightPanel:setImageColor('alpha')
|
||||
gameLeftPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameLeftPanel:getPaddingTop())
|
||||
gameRightPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameRightPanel:getPaddingTop())
|
||||
gameLeftPanel:setMarginTop(modules.client_topmenu.getTopMenu()
|
||||
:getHeight() - gameLeftPanel:getPaddingTop())
|
||||
gameRightPanel:setMarginTop(modules.client_topmenu.getTopMenu()
|
||||
:getHeight() - gameRightPanel:getPaddingTop())
|
||||
gameLeftPanel:setOn(true)
|
||||
gameLeftPanel:setVisible(true)
|
||||
gameRightPanel:setOn(true)
|
||||
|
||||
Reference in New Issue
Block a user