Fixed per stephen

This commit is contained in:
Philip Rosedale 2013-04-22 13:20:12 -07:00
parent 736eb335a9
commit 7d52af6fd4

View file

@ -990,8 +990,8 @@ void display(void)
int totalAgents = AgentList::getInstance()->getAgents().size();
int totalAvatars = 0, totalServers = 0;
for (int i = 0; i < totalAgents; i++) {
if (AgentList::getInstance()->getAgents()[i].getType() == AGENT_TYPE_INTERFACE) totalAvatars++;
else totalServers++;
(AgentList::getInstance()->getAgents()[i].getType() == AGENT_TYPE_INTERFACE)
? totalAvatars++ : totalServers++;
}
sprintf(agents, "Servers: %d, Avatars: %d\n", totalServers, totalAvatars);
drawtext(WIDTH-150,20, 0.10, 0, 1.0, 0, agents, 1, 0, 0);