Add RejectsOrders to disallow orders for offmap aircraft etc

This commit is contained in:
ScottNZ
2013-07-12 16:01:35 +12:00
parent 3b6ab58940
commit e4e92ec900
7 changed files with 55 additions and 3 deletions

View File

@@ -8,7 +8,6 @@
*/
#endregion
using System.Collections.Generic;
using OpenRA.Network;
namespace OpenRA.Traits
@@ -40,7 +39,7 @@ namespace OpenRA.Traits
return false;
}
return true;
return order.Subject.AcceptsOrder(order.OrderString);
}
}
}