move SupportPowerInfo.MissileWeapon to NukePowerInfo where it belongs

This commit is contained in:
Chris Forbes
2010-04-16 11:44:51 +12:00
parent 11a0679261
commit aaa9c2e579
2 changed files with 2 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ namespace OpenRA.Mods.RA.SupportPowers
{
class NukePowerInfo : SupportPowerInfo
{
public readonly string MissileWeapon = "";
public override object Create(Actor self) { return new NukePower(self, this); }
}
@@ -57,7 +58,7 @@ namespace OpenRA.Mods.RA.SupportPowers
Sound.Play(Info.LaunchSound);
//FIRE ZE MISSILES
w.Add(new NukeLaunch(silo, Info.MissileWeapon, order.TargetLocation));
w.Add(new NukeLaunch(silo, (Info as NukePowerInfo).MissileWeapon, order.TargetLocation));
});
Game.controller.CancelInputMode();