Removed hard coded WeaponInfo section name from NukeLaunch

This commit is contained in:
Matthew Bowra-Dean
2010-03-06 22:58:26 +13:00
parent 2c2f014342
commit bca11ca2a7
4 changed files with 8 additions and 7 deletions

View File

@@ -57,8 +57,8 @@ namespace OpenRA.Traits
if (Owner != Owner.World.LocalPlayer)
Sound.Play("alaunch1.aud");
// TODO: FIRE ZE MISSILES
w.Add(new NukeLaunch(silo, order.TargetLocation));
//FIRE ZE MISSILES
w.Add(new NukeLaunch(silo, Info.MissileWeapon, order.TargetLocation));
});
Game.controller.CancelInputMode();

View File

@@ -33,6 +33,7 @@ namespace OpenRA.Traits
public readonly string[] Prerequisites = { };
public readonly int TechLevel = -1;
public readonly bool GivenAuto = true;
public readonly string MissileWeapon = "";
public abstract object Create(Actor self);
}