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