Enabled multiple timed upgrades from single source.

This makes the UpgradeManager support requests to grant a timed
upgrade multiple times from a single source.
GrantUpgradeWarhead modified to take advantage of this.
This commit is contained in:
Matija Hustić
2015-10-09 20:56:59 +02:00
parent 03c80fb9c6
commit c55141c91c
2 changed files with 12 additions and 12 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Warheads
if (Duration > 0)
{
if (um.AcknowledgesUpgrade(a, u))
um.GrantTimedUpgrade(a, u, Duration, firedBy);
um.GrantTimedUpgrade(a, u, Duration, firedBy, Upgrades.Count(upg => upg == u));
}
else
{