Skip to content

Commit

Permalink
Merge pull request #118 from AresSC2/fix/building-tracker-progress-check
Browse files Browse the repository at this point in the history
fix: building tracker check for any structure build progress
  • Loading branch information
raspersc2 authored Mar 17, 2024
2 parents b2f3d6c + 0452e1d commit ae2b477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ares/managers/building_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _handle_construction_orders(self) -> None:
lambda s: cy_distance_to_squared(s.position, target.position) < 2.0
):
structure: Unit = close_structures[0]
target_progress: float = 1.0 if self.ai.race == Race.Terran else 0.01
target_progress: float = 1.0 if self.ai.race == Race.Terran else 1e-16
if structure.build_progress >= target_progress:
tags_to_remove.add(worker_tag)
continue
Expand Down

0 comments on commit ae2b477

Please sign in to comment.