Don't report "Primary Building Selected" when nothing changes.
This commit is contained in:
@@ -79,9 +79,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
void IResolveOrder.ResolveOrder(Actor self, Order order)
|
void IResolveOrder.ResolveOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
var forceRallyPoint = RallyPoint.IsForceSet(order);
|
if (order.OrderString == OrderID)
|
||||||
if (order.OrderString == OrderID || forceRallyPoint)
|
SetPrimaryProducer(self, !IsPrimary);
|
||||||
SetPrimaryProducer(self, !IsPrimary || forceRallyPoint);
|
|
||||||
|
if (RallyPoint.IsForceSet(order) && !IsPrimary)
|
||||||
|
SetPrimaryProducer(self, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetPrimaryProducer(Actor self, bool isPrimary)
|
public void SetPrimaryProducer(Actor self, bool isPrimary)
|
||||||
|
|||||||
Reference in New Issue
Block a user