Do not show LockTarget messages in log if LockTarget is disabled
This commit is contained in:
@@ -37,12 +37,14 @@ void UserAI_LockTargetMgr::onUserRequestAction( unsigned int actionObjectID )
|
|||||||
if( g_game_client->ai.usr.targetObjectID != actionObjectID )
|
if( g_game_client->ai.usr.targetObjectID != actionObjectID )
|
||||||
{
|
{
|
||||||
m_toid = 0;
|
m_toid = 0;
|
||||||
|
if( m_enabled )
|
||||||
log_error( LOG_USERAI, "[LockTarget]: user wishes to change target\n" );
|
log_error( LOG_USERAI, "[LockTarget]: user wishes to change target\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserAI_LockTargetMgr::onUserRequestUnselectTarget()
|
void UserAI_LockTargetMgr::onUserRequestUnselectTarget()
|
||||||
{
|
{
|
||||||
|
if( m_enabled )
|
||||||
log_error( LOG_USERAI, "[LockTarget]: user wishes to unselect target\n" );
|
log_error( LOG_USERAI, "[LockTarget]: user wishes to unselect target\n" );
|
||||||
m_toid = 0;
|
m_toid = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user