From 793dfa57481fd9f0e61aca72af8e59d7ce592181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 25 Feb 2013 22:20:17 +0100 Subject: [PATCH] don't convert cell size to float for bullet inaccuracy change it back to int / int / float from int / float / float was int / int / float before --- OpenRA.Mods.RA/Effects/Bullet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Effects/Bullet.cs b/OpenRA.Mods.RA/Effects/Bullet.cs index 7820e840ea..19a1b87a26 100755 --- a/OpenRA.Mods.RA/Effects/Bullet.cs +++ b/OpenRA.Mods.RA/Effects/Bullet.cs @@ -57,7 +57,7 @@ namespace OpenRA.Mods.RA.Effects if (info.Inaccuracy > 0) { - var factor = ((Args.dest - Args.src).Length / (float)Game.CellSize) / args.weapon.Range; + 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(); }