Upper limit to water drag force, fixed highlighted items "flickering"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user