mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 06:13:09 +02:00
repair the count of avatars and servers
This commit is contained in:
parent
2aaa9ce3f6
commit
3a706a2759
1 changed files with 2 additions and 4 deletions
|
@ -3148,10 +3148,8 @@ void Application::displayStats() {
|
|||
|
||||
glPointSize(1.0f);
|
||||
|
||||
int totalAvatars = 0, totalServers = 0;
|
||||
foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
|
||||
node->getType() == NODE_TYPE_AGENT ? totalAvatars++ : totalServers++;
|
||||
}
|
||||
int totalAvatars = _avatarManager.size();
|
||||
int totalServers = NodeList::getInstance()->size();
|
||||
|
||||
if (mirrorEnabled) {
|
||||
horizontalOffset += MIRROR_VIEW_WIDTH + MIRROR_VIEW_LEFT_PADDING * 2;
|
||||
|
|
Loading…
Reference in a new issue