google-code-export / bwapi

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

Unit::build(GeyserTile, Refinery) returns true even if Refinery is already built over Geyser #183

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
  bool  GameImpl::canBuildHere(Unit* builder, TilePosition position, 
UnitType type)
  {
....
    if (type.isRefinery())
    {
      foreach (Unit* g, getGeysers())
      {
        if (g->getTilePosition() == position)
        {
          this->setLastError(Errors::None);
          return true;
        }
      }
      return false;
    }
.....

Original issue reported on code.google.com by tin...@gmail.com on 14 Jan 2010 at 12:19

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2114.

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