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
+1 -1
View File
@@ -721,7 +721,7 @@ namespace Barotrauma
/// </summary> /// </summary>
private void ApplyWaterForces() private void ApplyWaterForces()
{ {
if (!InWater || body == null || Container != null) return; if (!InWater || Container != null || body == null || !body.Enabled) return;
float forceFactor = 1.0f; float forceFactor = 1.0f;
if (CurrentHull != null) if (CurrentHull != null)
+2 -1
View File
@@ -44,7 +44,8 @@ namespace Barotrauma
{ {
try try
{ {
oggSound = OggSound.Load(file); DebugConsole.Log("Loading sound " + file);
oggSound = OggSound.Load(file);
} }
catch (Exception e) catch (Exception e)
{ {