From 621b1402c5e546fed4487a20bf03bc023bbf856a Mon Sep 17 00:00:00 2001 From: BeniS Date: Thu, 23 Aug 2012 14:59:42 +1200 Subject: [PATCH] Fix market error when logging out, added 910 protocol support. --- modules/game_market/market.lua | 11 ++++++----- modules/gamelib/game.lua | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/game_market/market.lua b/modules/game_market/market.lua index 4a1f0b1b..4b14daff 100644 --- a/modules/game_market/market.lua +++ b/modules/game_market/market.lua @@ -811,11 +811,12 @@ end function Market.close(notify) if notify == nil then notify = true end - marketWindow:hide() - marketWindow:unlock() - Market.clearSelectedItem() - if notify then - MarketProtocol.sendMarketLeave() + if not marketWindow:isHidden() then + marketWindow:hide() + marketWindow:unlock() + if notify then + MarketProtocol.sendMarketLeave() + end end end diff --git a/modules/gamelib/game.lua b/modules/gamelib/game.lua index 90855894..817f5b8e 100644 --- a/modules/gamelib/game.lua +++ b/modules/gamelib/game.lua @@ -48,8 +48,8 @@ end function g_game.getSupportedProtocols() return { - 810, 853, 854, 860, 861, 862, 870, 940, - 944, 953, 954, 960, 961 + 810, 853, 854, 860, 861, 862, 870, + 910, 940, 944, 953, 954, 960, 961 } end