Fix Explodes

This commit is contained in:
Paul Chote
2010-06-14 21:36:52 +12:00
parent 24edba34a7
commit d36c8deb97

View File

@@ -1,4 +1,4 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
* This file is part of OpenRA.
@@ -39,8 +39,7 @@ namespace OpenRA.Mods.RA
{
var unit = self.traits.GetOrDefault<Unit>();
var altitude = unit != null ? unit.Altitude : 0;
Combat.DoExplosion(e.Attacker,
self.Info.Traits.Get<ExplodesInfo>().Weapon,
Combat.DoExplosion(e.Attacker, weapon,
self.CenterLocation.ToInt2(), altitude);
}
}