glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] questions about code


From: Quinn Yee Qin Teh
Subject: [glob2-devel] questions about code
Date: Wed, 8 Oct 2008 23:17:25 +1100

Hi,
 
Just wondering, in Team.cpp of the 0.9.3 source code, in the function void Team::updateAllBuildingTasks(), why is the block:
 
for(unsigned j=0; j<(i->second.size()); ++j)
{
   if(foundPer[j])
   {
      bool thisFound=false;
      if(i->second[j]->type->isVirtual)
         thisFound |= (i->second)[j]->subscribeForFlagingStep();
      else
         thisFound |= (i->second)[j]->subscribeToBringRessourcesStep();
      found |= thisFound;
      foundPer[j] = thisFound;
   }
}
 
located inside the while(cont) loop? What is the purpose of this outer while() loop?
 
Thanks.
Quinn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]