(7c7004099) Fixed syringes being launched backwards from the syringe gun when firing to the right.

This commit is contained in:
Joonas Rikkonen
2019-04-02 12:42:14 +03:00
parent baadd60d8d
commit 3eb11d9c5d

View File

@@ -164,7 +164,7 @@ namespace Barotrauma.Items.Components
//set the rotation of the projectile again because dropping the projectile resets the rotation
projectile.Item.SetTransform(projectilePos,
rotation + ((item.body.Dir == 1.0f) ? projectile.LaunchRotationRadians : projectile.LaunchRotationRadians - MathHelper.Pi));
rotation + (projectile.Item.body.Dir * projectile.LaunchRotationRadians));
//recoil
item.body.ApplyLinearImpulse(