feature: allow buildings to spawn buildings within their repair range
This commit is contained in:
commit
ab324f9adb
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ void CommandBuildBuilding(CUnit &unit, const Vec2i &pos, CUnitType &what, int fl
|
|||
}
|
||||
COrderPtr *order;
|
||||
|
||||
if (unit.Type->Building) {
|
||||
if (unit.Type->Building && !what.BuilderOutside && unit.MapDistanceTo(pos) > unit.Type->RepairRange) {
|
||||
ClearNewAction(unit);
|
||||
order = &unit.NewOrder;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue