Water forces aren't applied to disabled bodies, logging sound loading
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -44,7 +44,8 @@ namespace Barotrauma
|
||||
{
|
||||
try
|
||||
{
|
||||
oggSound = OggSound.Load(file);
|
||||
DebugConsole.Log("Loading sound " + file);
|
||||
oggSound = OggSound.Load(file);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user