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.
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user