Fix Explodes
This commit is contained in:
@@ -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.
|
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
|
||||||
* This file is part of OpenRA.
|
* This file is part of OpenRA.
|
||||||
@@ -39,8 +39,7 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
var unit = self.traits.GetOrDefault<Unit>();
|
var unit = self.traits.GetOrDefault<Unit>();
|
||||||
var altitude = unit != null ? unit.Altitude : 0;
|
var altitude = unit != null ? unit.Altitude : 0;
|
||||||
Combat.DoExplosion(e.Attacker,
|
Combat.DoExplosion(e.Attacker, weapon,
|
||||||
self.Info.Traits.Get<ExplodesInfo>().Weapon,
|
|
||||||
self.CenterLocation.ToInt2(), altitude);
|
self.CenterLocation.ToInt2(), altitude);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user