Fixed the spamming of has left sim
Bumping into the edge of a region without a neighboring simulator would spam has left and has entered the sim. This will now check if the position is a valid global, if position not valid then it will assume you're still in the same simulator.
This commit is contained in:
@@ -554,7 +554,7 @@ void LLFloaterAvatarList::updateAvatarList()
|
||||
|
||||
// Announce position
|
||||
F32 dist((position - mypos).magVec());
|
||||
entry->setPosition(position, gAgent.getRegion()->pointInRegionGlobal(position), avatarp, dist < LFSimFeatureHandler::getInstance()->sayRange(), dist < LFSimFeatureHandler::getInstance()->shoutRange());
|
||||
entry->setPosition(position, gAgent.getRegion()->pointInRegionGlobal(position) || !(LLWorld::getInstance()->positionRegionValidGlobal(position)), avatarp, dist < LFSimFeatureHandler::getInstance()->sayRange(), dist < LFSimFeatureHandler::getInstance()->shoutRange());
|
||||
|
||||
// Mark as typing if they are typing
|
||||
if (avatarp && avatarp->isTyping()) entry->setActivity(LLAvatarListEntry::ACTIVITY_TYPING);
|
||||
|
||||
Reference in New Issue
Block a user