use explosion *names*, not *numbers* like RA.

This commit is contained in:
Chris Forbes
2010-07-07 19:38:59 +12:00
parent c17a63a434
commit fb1d37ae53
7 changed files with 88 additions and 67 deletions

View File

@@ -49,10 +49,11 @@ namespace OpenRA
return;
var isWater = world.GetTerrainInfo(targetTile).IsWater;
var explosionType = isWater ? warhead.WaterExplosion : warhead.Explosion;
if (warhead.Explosion != 0)
if (explosionType != null)
world.AddFrameEndTask(
w => w.Add(new Explosion(w, args.dest, warhead.Explosion, isWater)));
w => w.Add(new Explosion(w, args.dest, explosionType, isWater)));
Sound.Play(GetImpactSound(warhead, isWater), args.dest);