google-code-export / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

Zerg Hatchery mutating into Lair reports isTraining() == true #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Happens with Hatchery mutating. May also happen on other morphings, such as
refineries, hives, sunkens/spores, greater spire, maybe even addons.

Original issue reported on code.google.com by darkp...@gmail.com on 15 Jan 2010 at 8:51

GoogleCodeExporter commented 9 years ago

Original comment by lowerlo...@gmail.com on 18 Jan 2010 at 2:18

GoogleCodeExporter commented 9 years ago
You can access the upgrade by watching TrainingQueue of the upgrading building.
For example, I've written the function:

bool IsBuildingReady(const Unit* building)
{
  if (building != NULL)
  return (building->exists()) && (building->isCompleted() || building-
>getTrainingQueue().size()>0); else
  return false;
}

Original comment by tai...@nm.ru on 23 Jan 2010 at 2:28

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 28 Jan 2010 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by lowerlo...@gmail.com on 7 Mar 2010 at 6:12

GoogleCodeExporter commented 9 years ago
Fixed in r2113.

Original comment by lowerlo...@gmail.com on 7 Mar 2010 at 6:55