Upper limit to water drag force, fixed highlighted items "flickering"

This commit is contained in:
Regalis
2016-10-09 20:45:28 +03:00
parent d4e9116b0f
commit 74a9453676
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -703,6 +703,8 @@ namespace Barotrauma
inWater = IsInWater();
if (inWater) ApplyStatusEffects(ActionType.InWater, deltaTime);
isHighlighted = false;
if (body == null || !body.Enabled) return;
if (Math.Abs(body.LinearVelocity.X) > 0.01f || Math.Abs(body.LinearVelocity.Y) > 0.01f)
@@ -881,7 +883,6 @@ namespace Barotrauma
if (!editing || (body != null && !body.Enabled))
{
isHighlighted = false;
return;
}