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
This commit is contained in:
Matthias Mailänder
2013-02-25 22:20:17 +01:00
parent 0b493bcb09
commit 793dfa5748

View File

@@ -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();
}