Water forces aren't applied to disabled bodies, logging sound loading

This commit is contained in:
Regalis
2016-04-22 23:46:36 +03:00
parent e84e72bba6
commit 83081d98c0
2 changed files with 3 additions and 2 deletions

View File

@@ -721,7 +721,7 @@ namespace Barotrauma
/// </summary>
private void ApplyWaterForces()
{
if (!InWater || body == null || Container != null) return;
if (!InWater || Container != null || body == null || !body.Enabled) return;
float forceFactor = 1.0f;
if (CurrentHull != null)