explosions are more or less correct now
This commit is contained in:
@@ -59,9 +59,15 @@ namespace OpenRa.Game
|
||||
t += 40;
|
||||
|
||||
if (t > TotalTime()) /* remove finished bullets */
|
||||
{
|
||||
Game.world.AddFrameEndTask(w => w.Remove(this));
|
||||
Game.world.AddFrameEndTask(w => w.Add(new Explosion(Dest)));
|
||||
{
|
||||
Game.world.AddFrameEndTask(w =>
|
||||
{
|
||||
w.Remove(this);
|
||||
w.Add(new Explosion(Dest, Warhead.Explosion));
|
||||
|
||||
if (Warhead.ImpactSound != null)
|
||||
Game.PlaySound(Warhead.ImpactSound + ".aud", false);
|
||||
});
|
||||
|
||||
var maxSpread = GetMaximumSpread();
|
||||
var hitActors = Game.FindUnitsInCircle(Dest, GetMaximumSpread());
|
||||
|
||||
Reference in New Issue
Block a user