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 -- 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.updateProtocol(nil)
MarketProtocol.unregisterProtocol() MarketProtocol.unregisterProtocol()
end
MarketProtocol = nil MarketProtocol = nil
end end

View File

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