glob2-devel
[Top][All Lists]
Advanced

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

Re: [glob2-devel] questions about code


From: Quinn Yee Qin Teh
Subject: Re: [glob2-devel] questions about code
Date: Thu, 9 Oct 2008 22:39:07 +1100

Okay.. so I presume that subscribeToBringRessourcesStep() uses if (((Sint32)unitsWorking.size()<desiredMaxUnitWorking) to let as many buildings get some workers as possible, instead of several buildings hogging up all the workers, is that correct? If that's the case, why does subscribeToBringRessourcesStep() use while (((Sint32)unitsWorking.size()<desiredMaxUnitWorking)) instead of the if statement like subscribeToBringRessourcesStep()?
 
Thanks.
 


 
On Thu, Oct 9, 2008 at 6:16 AM, Bradley Arsenault <address@hidden> wrote:
Its because subscribeForFlagingStep and subscribetoBringRessourcesStep only subscribe one unit. Goes through all the buildings multiple times, until all units that can be hired are.


--
Extra cheese comes at a cost. Bradley Arsenault.

_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel



reply via email to

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