Fix market error when logging out, added 910 protocol support.
This commit is contained in:
parent
bdbce01c97
commit
621b1402c5
|
@ -811,12 +811,13 @@ end
|
||||||
|
|
||||||
function Market.close(notify)
|
function Market.close(notify)
|
||||||
if notify == nil then notify = true end
|
if notify == nil then notify = true end
|
||||||
|
if not marketWindow:isHidden() then
|
||||||
marketWindow:hide()
|
marketWindow:hide()
|
||||||
marketWindow:unlock()
|
marketWindow:unlock()
|
||||||
Market.clearSelectedItem()
|
|
||||||
if notify then
|
if notify then
|
||||||
MarketProtocol.sendMarketLeave()
|
MarketProtocol.sendMarketLeave()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Market.incrementAmount()
|
function Market.incrementAmount()
|
||||||
|
|
|
@ -48,8 +48,8 @@ end
|
||||||
|
|
||||||
function g_game.getSupportedProtocols()
|
function g_game.getSupportedProtocols()
|
||||||
return {
|
return {
|
||||||
810, 853, 854, 860, 861, 862, 870, 940,
|
810, 853, 854, 860, 861, 862, 870,
|
||||||
944, 953, 954, 960, 961
|
910, 940, 944, 953, 954, 960, 961
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue