Cutting/repairing holes in walls is logged, fixed gaps emitting drip particles even if there's no water in either hull. Closes #139

This commit is contained in:
Joonas Rikkonen
2018-01-09 19:50:55 +02:00
parent 6fff303d30
commit d1bb33be78
3 changed files with 29 additions and 5 deletions
@@ -78,7 +78,7 @@ namespace Barotrauma
}
//light dripping
if (open < 0.2f)
if (open < 0.2f && LerpedFlowForce.LengthSquared() > 100.0f)
{
float particlesPerSec = open * 1000.0f;
float emitInterval = 1.0f / particlesPerSec;