Fixed railgun shells never deactivating their particle emitter
This commit is contained in:
@@ -224,6 +224,8 @@ namespace Barotrauma.Items.Components
|
|||||||
if (item.body.LinearVelocity.LengthSquared() < ContinuousCollisionThreshold * ContinuousCollisionThreshold)
|
if (item.body.LinearVelocity.LengthSquared() < ContinuousCollisionThreshold * ContinuousCollisionThreshold)
|
||||||
{
|
{
|
||||||
item.body.FarseerBody.IsBullet = false;
|
item.body.FarseerBody.IsBullet = false;
|
||||||
|
//projectiles with a stickjoint don't become inactive until the stickjoint is detached
|
||||||
|
if (stickJoint == null) IsActive = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user