Fixed railgun shells never deactivating their particle emitter

This commit is contained in:
Joonas Rikkonen
2018-02-05 17:10:00 +02:00
parent 25fde64378
commit 74cd265952
@@ -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;
}
}