go2starr / CS-638-BWAPI

Starcraft: Broodwar AI bot
GNU Lesser General Public License v3.0
9 stars 7 forks source link

BuildManager's worker(s) should be put in a useful default state if they can't currently build anything #8

Closed bploeckelman closed 12 years ago

bploeckelman commented 12 years ago

If there aren't enough resources to start building something, the BuildManager's worker(s) sit in build state without anything to do. If they aren't currently building, they should automatically be put in gather state so that they aren't wasting time.

Once resources become available to resume building, any worker can be immediately pulled out of gather state and put back into build state to get started constructing.

bploeckelman commented 12 years ago

Fixed, see bfbb74405a60a441686475914c41082eb952ff39