Some cleanup. Using gAgentAvatarp in many places. Incl other misc small changes.
This commit is contained in:
@@ -2004,7 +2004,7 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
|
||||
}
|
||||
|
||||
// If we're snapping the position by more than 0.5m, update LLViewerStats::mAgentPositionSnaps
|
||||
if ( isAvatar() && gAgentAvatarp == this && (mag_sqr > 0.25f) )
|
||||
if ( asAvatar() && asAvatar()->isSelf() && (mag_sqr > 0.25f) )
|
||||
{
|
||||
LLViewerStats::getInstance()->mAgentPositionSnaps.push( diff.length() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user