Eduardo Bart 11 years ago
parent 9e4a9433ca
commit 90f1244ab4

@ -640,7 +640,7 @@ function getBottomPanel()
end
function onLeftPanelVisibilityChange(leftPanel, visible)
if not visible then
if not visible and g_game.isOnline() then
local children = leftPanel:getChildren()
for i=1,#children do
children[i]:setParent(gameRightPanel)

@ -189,6 +189,7 @@ void Game::processGameStart()
void Game::processGameEnd()
{
m_online = false;
g_lua.callGlobalField("g_game", "onGameEnd");
// reset game state

Loading…
Cancel
Save