Modified Capturable to have a capture time; fixes #2002

This commit is contained in:
Curtis Shmyr
2012-04-02 18:03:51 -06:00
committed by Chris Forbes
parent 7187b14459
commit bc8c433a72
9 changed files with 104 additions and 22 deletions

View File

@@ -21,13 +21,13 @@ namespace OpenRA.Mods.RA
public class Sellable : IResolveOrder
{
bool selling = false;
[Sync] public bool Selling = false;
public void ResolveOrder(Actor self, Order order)
{
if (order.OrderString == "Sell" && !selling)
if (order.OrderString == "Sell" && !Selling)
{
selling = true;
Selling = true;
foreach( var ns in self.TraitsImplementing<INotifySold>() )
ns.Selling( self );