gps support power wired up properly

This commit is contained in:
Chris Forbes
2010-01-08 22:25:12 +13:00
parent 6d509e6234
commit 54c28ab74d
7 changed files with 38 additions and 28 deletions

View File

@@ -8,6 +8,8 @@ using OpenRa.Game.SupportPowers;
namespace OpenRa.Game
{
// todo: fix this to route Activate through the orders system (otherwise desync in netplay)
class SupportPower
{
public readonly SupportPowerInfo Info;
@@ -26,7 +28,7 @@ namespace OpenRa.Game
{
Info = info;
Owner = owner;
RemainingTime = TotalTime = (int)info.ChargeTime * 60 * 25;
RemainingTime = TotalTime = (int)(info.ChargeTime * 60 * 25);
Impl = ConstructPowerImpl(info.Impl);
}