From 3189a4f457ec20e2000849153e9c897e234fbc66 Mon Sep 17 00:00:00 2001 From: Matthew Bowra-Dean Date: Sun, 28 Nov 2010 01:45:24 +1300 Subject: [PATCH] Give sensible default range to CarpetBomb and make sure its target location is in the correct units. --- OpenRA.Mods.RA/CarpetBomb.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/CarpetBomb.cs b/OpenRA.Mods.RA/CarpetBomb.cs index e81430feb5..37c9533adb 100644 --- a/OpenRA.Mods.RA/CarpetBomb.cs +++ b/OpenRA.Mods.RA/CarpetBomb.cs @@ -17,7 +17,7 @@ namespace OpenRA.Mods.RA { [WeaponReference] public readonly string Weapon = null; - public readonly int Range = 0; + public readonly int Range = 3; } class CarpetBomb : ITick // todo: maybe integrate this better with the normal weapons system? @@ -31,7 +31,7 @@ namespace OpenRA.Mods.RA { var info = self.Info.Traits.Get(); - if( !Combat.IsInRange( self.CenterLocation, info.Range, Target ) ) + if( !Combat.IsInRange( self.CenterLocation, info.Range, Target * Game.CellSize ) ) return; var limitedAmmo = self.TraitOrDefault();