Skip to content

Commit

Permalink
Final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodrigv committed Nov 17, 2016
1 parent c70abf7 commit 2da34dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion FlamingJointScript.cs
Expand Up @@ -9,7 +9,7 @@ public class FlamingJointScript : MonoBehaviour

private readonly float _shrinkRateFlame = 0.25f; // from 0.35f //from 0.75f //from 1.75f

private readonly float _shrinkRateSmoke = 0.1f; //from 1f//from 2f//
private readonly float _shrinkRateSmoke = 0.07f; //from 1f//from 2f//
private GameObject _destroyer;

private float _destroyTimerStart;
Expand Down
3 changes: 2 additions & 1 deletion FlamingJoints.cs
Expand Up @@ -43,8 +43,9 @@ public void OnPartJointBreak(PartJoint partJoint, float breakForce)
{
return;
}
if (breakForce == float.PositiveInfinity || breakForce <= 0)
if (breakForce == float.PositiveInfinity || breakForce < 0)
{
Debug.Log("DestructionEffects: Not effect due to breaking force negative or infinity");
return;
}
if (!ShouldFlamesBeAttached(partJoint))
Expand Down

0 comments on commit 2da34dc

Please sign in to comment.