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

This commit is contained in:
BeniS 2012-08-02 11:04:29 +12:00
parent 103daa63e3
commit cadf07974a
2 changed files with 2 additions and 6 deletions

View File

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

View File

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