magic rifle rotation fix

This commit is contained in:
termigator1359 committed 2020-05-31 12:50:35 -04:00
1 parent d6d5bc4490
commit bc61b4d295
1 file changed
+2 -2
+2 -2
View File
@@ -172,12 +172,12 @@ namespace CalamityMod.Projectiles.Summon
if (flag25)
{
projectile.spriteDirection = projectile.direction = ((vector46.X - projectile.Center.X) > 0).ToDirectionInt();
projectile.rotation = projectile.rotation.AngleTowards(projectile.AngleTo(vector46) + (projectile.spriteDirection == 1 ? MathHelper.ToRadians(315) : MathHelper.ToRadians(135)), 0.1f);
projectile.rotation = projectile.rotation.AngleTowards(projectile.AngleTo(vector46) + (projectile.spriteDirection == 1 ? MathHelper.ToRadians(315) : MathHelper.ToRadians(225)), 0.1f);
}
else
{
projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt();
projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? MathHelper.ToRadians(315) : MathHelper.ToRadians(135));
projectile.rotation = projectile.velocity.ToRotation() + (projectile.spriteDirection == 1 ? MathHelper.ToRadians(315) : MathHelper.ToRadians(225));
}
if (projectile.ai[1] > 0f)
{