Fix to market module reloading, Changed the walk lock period when colliding with a block path object.
This commit is contained in:
parent
103daa63e3
commit
cadf07974a
|
@ -129,7 +129,6 @@ function initProtocol()
|
||||||
-- reloading module
|
-- reloading module
|
||||||
if g_game.isOnline() then
|
if g_game.isOnline() then
|
||||||
MarketProtocol.registerProtocol()
|
MarketProtocol.registerProtocol()
|
||||||
MarketProtocol.updateProtocol(g_game.getProtocolGame())
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -138,10 +137,7 @@ function terminateProtocol()
|
||||||
onGameEnd = MarketProtocol.unregisterProtocol })
|
onGameEnd = MarketProtocol.unregisterProtocol })
|
||||||
|
|
||||||
-- reloading module
|
-- reloading module
|
||||||
if not g_game.isOnline() then
|
MarketProtocol.unregisterProtocol()
|
||||||
MarketProtocol.updateProtocol(nil)
|
|
||||||
MarketProtocol.unregisterProtocol()
|
|
||||||
end
|
|
||||||
MarketProtocol = nil
|
MarketProtocol = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -494,7 +494,7 @@ void Game::walk(Otc::Direction direction)
|
||||||
if(toTile && toTile->isWalkable())
|
if(toTile && toTile->isWalkable())
|
||||||
m_localPlayer->preWalk(direction);
|
m_localPlayer->preWalk(direction);
|
||||||
else
|
else
|
||||||
m_localPlayer->lockWalk();
|
m_localPlayer->lockWalk(100);
|
||||||
|
|
||||||
forceWalk(direction);
|
forceWalk(direction);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue