don't render agents that are not of type avatar

This commit is contained in:
Stephen Birarda 2013-04-22 16:04:46 -07:00
parent f10ec0b391
commit ba4235c175

View file

@ -915,7 +915,7 @@ void display(void)
for(std::vector<Agent>::iterator agent = agentList->getAgents().begin();
agent != agentList->getAgents().end();
agent++) {
if (agent->getLinkedData() != NULL) {
if (agent->getLinkedData() != NULL && agent->getType() == AGENT_TYPE_AVATAR) {
Head *avatar = (Head *)agent->getLinkedData();
//glPushMatrix();