added auto activate cap for powers; attached to gps satellite

This commit is contained in:
Chris Forbes
2010-01-08 21:54:29 +13:00
parent 28746d0bcd
commit a0fafdeed4
3 changed files with 5 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ namespace OpenRa.Game
{
if (RemainingTime > 0) --RemainingTime;
}
if (RemainingTime == 0 && Info.AutoActivate)
Activate();
}
public void Activate()