Skip to content

Commit

Permalink
fixed demotruck
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed Apr 4, 2010
1 parent a22ec0f commit fae9f7f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions OpenRA.Mods.Aftermath/DemoTruck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ public void Detonate(Actor self, Actor detonatedBy)

self.World.AddFrameEndTask( w =>
{
// Fire weapon
//w.Add(new Bullet(info.PrimaryWeapon, detonatedBy.Owner, detonatedBy,
// detonateLocation, detonateLocation, altitude, altitude));
Combat.DoExplosion(self, info.PrimaryWeapon, detonateLocation, altitude);
var report = self.GetPrimaryWeapon().Report;
if (report != null)
Sound.Play(report + ".aud");

//var weapon = Rules.WeaponInfo[info.PrimaryWeapon];
//if (!string.IsNullOrEmpty(weapon.Report))
// Sound.Play(weapon.Report + ".aud");

// Remove from world
self.Health = 0;
detonatedBy.Owner.Kills++;
Expand Down

0 comments on commit fae9f7f

Please sign in to comment.