mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Fix #577 dash will now fire onWalk (with isDash parameter).
Also added missing client versions.
This commit is contained in:
@@ -648,7 +648,7 @@ bool Game::walk(Otc::Direction direction)
|
||||
|
||||
m_localPlayer->stopAutoWalk();
|
||||
|
||||
g_lua.callGlobalField("g_game", "onWalk", direction);
|
||||
g_lua.callGlobalField("g_game", "onWalk", direction, false);
|
||||
|
||||
forceWalk(direction);
|
||||
m_lastWalkDir = direction;
|
||||
@@ -713,6 +713,8 @@ bool Game::dashWalk(Otc::Direction direction)
|
||||
return false;
|
||||
}
|
||||
|
||||
g_lua.callGlobalField("g_game", "onWalk", direction, true);
|
||||
|
||||
forceWalk(direction);
|
||||
m_dashTimer.restart();
|
||||
m_lastWalkDir = direction;
|
||||
|
@@ -405,7 +405,7 @@ void ProtocolGame::parsePlayerHelpers(const InputMessagePtr& msg)
|
||||
if(creature)
|
||||
g_game.processPlayerHelpers(helpers);
|
||||
else
|
||||
g_logger.traceError("could not get creature");
|
||||
g_logger.traceError(stdext::format("could not get creature with id %d", id));
|
||||
}
|
||||
|
||||
void ProtocolGame::parseGMActions(const InputMessagePtr& msg)
|
||||
|
Reference in New Issue
Block a user