Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/davechurchill/master'
Browse files Browse the repository at this point in the history
Conflicts:
	UAlbertaBot/Source/BOSSManager.cpp
  • Loading branch information
earthiverse committed Nov 21, 2015
2 parents 2ec0ed3 + 0e845bb commit 0b36daf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions UAlbertaBot/Source/BOSSManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ void BOSSManager::reset()
// start a new search for a new goal
void BOSSManager::startNewSearch(const std::vector<MetaPair> & goalUnits)
{
size_t numWorkers = UnitUtil::GetAllUnitCount(BWAPI::Broodwar->self()->getRace().getWorker());
size_t numDepots = UnitUtil::GetAllUnitCount(BWAPI::Broodwar->self()->getRace().getCenter());
if (BWAPI::Broodwar->self()->getRace() == BWAPI::Races::Zerg) {
numDepots += UnitUtil::GetAllUnitCount(BWAPI::UnitTypes::Zerg_Lair);
numDepots += UnitUtil::GetAllUnitCount(BWAPI::UnitTypes::Zerg_Hive);
}
size_t numWorkers = UnitUtil::GetAllUnitCount(BWAPI::Broodwar->self()->getRace().getWorker());
size_t numDepots = UnitUtil::GetAllUnitCount(BWAPI::Broodwar->self()->getRace().getCenter())
+ UnitUtil::GetAllUnitCount(BWAPI::UnitTypes::Zerg_Lair)
+ UnitUtil::GetAllUnitCount(BWAPI::UnitTypes::Zerg_Hive);

if (numWorkers == 0)
{
Expand Down

0 comments on commit 0b36daf

Please sign in to comment.