From 74cd2659529876636b8b8229bffc0827915faba7 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 5 Feb 2018 17:10:00 +0200 Subject: [PATCH] Fixed railgun shells never deactivating their particle emitter --- .../BarotraumaShared/Source/Items/Components/Projectile.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Projectile.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Projectile.cs index c5c079d2e..c67cbdf17 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Projectile.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Projectile.cs @@ -224,6 +224,8 @@ namespace Barotrauma.Items.Components if (item.body.LinearVelocity.LengthSquared() < ContinuousCollisionThreshold * ContinuousCollisionThreshold) { item.body.FarseerBody.IsBullet = false; + //projectiles with a stickjoint don't become inactive until the stickjoint is detached + if (stickJoint == null) IsActive = false; } }