feature: allow buildings to spawn buildings within their repair range

This commit is contained in:
Tim Felgentreff 2013-05-30 14:02:59 +02:00
commit ab324f9adb

View file

@ -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 {