Fix incorrect rotation calculation in ThrowsShrapnel.

This commit is contained in:
Paul Chote
2020-07-09 22:09:11 +01:00
committed by reaperrr
parent ac975f4139
commit 3bf61f1043

View File

@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Traits
for (var i = 0; pieces > i; i++)
{
var rotation = WRot.FromFacing(self.World.SharedRandom.Next(1024));
var rotation = WRot.FromYaw(new WAngle(self.World.SharedRandom.Next(1024)));
var args = new ProjectileArgs
{
Weapon = wep,