From 7d52af6fd4d846cb2bd64ad40b3a960e0cfadd7e Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Mon, 22 Apr 2013 13:20:12 -0700 Subject: [PATCH] Fixed per stephen --- interface/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index a47936ffd3..2285d14bb9 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -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);