log projectile dest as it is affected by inaccuracy calc

want to debug if this is the source of problems
This commit is contained in:
Matthias Mailänder
2013-03-03 19:33:41 +01:00
parent 76644537e2
commit ef36c446bd

View File

@@ -59,6 +59,7 @@ namespace OpenRA.Mods.RA.Effects
{
var factor = ((Args.dest - Args.src).Length / Game.CellSize) / (float)args.weapon.Range;
Args.dest += (PVecInt) (info.Inaccuracy * factor * args.firedBy.World.SharedRandom.Gauss2D(2)).ToInt2();
Log.Write("debug", "Bullet with Inaccuracy; factor: #{0}; Projectile dest: {1}", factor, Args.dest);
}
if (Info.Image != null)