This commit is contained in:
Eduardo Bart 2013-01-25 18:28:44 -02:00
parent 9e4a9433ca
commit 90f1244ab4
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

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