Fix to market module reloading, Changed the walk lock period when colliding with a block path object.

master
BeniS 12 years ago
parent 103daa63e3
commit cadf07974a

@ -129,7 +129,6 @@ function initProtocol()
-- reloading module
if g_game.isOnline() then
MarketProtocol.registerProtocol()
MarketProtocol.updateProtocol(g_game.getProtocolGame())
end
end
@ -138,10 +137,7 @@ function terminateProtocol()
onGameEnd = MarketProtocol.unregisterProtocol })
-- reloading module
if not g_game.isOnline() then
MarketProtocol.updateProtocol(nil)
MarketProtocol.unregisterProtocol()
end
MarketProtocol.unregisterProtocol()
MarketProtocol = nil
end

@ -494,7 +494,7 @@ void Game::walk(Otc::Direction direction)
if(toTile && toTile->isWalkable())
m_localPlayer->preWalk(direction);
else
m_localPlayer->lockWalk();
m_localPlayer->lockWalk(100);
forceWalk(direction);

Loading…
Cancel
Save