Merge branch 'master' into new-netcode
Conflicts: Subsurface/Source/Characters/Character.cs Subsurface/Source/GUI/GUI.cs Subsurface/Source/GUI/LoadingScreen.cs
This commit is contained in:
@@ -348,8 +348,16 @@ namespace Barotrauma
|
||||
{
|
||||
lightSource.Remove();
|
||||
|
||||
if (basicSoundIndex > -1) Sounds.SoundManager.Stop(basicSoundIndex);
|
||||
if (largeSoundIndex > -1) Sounds.SoundManager.Stop(largeSoundIndex);
|
||||
if (basicSoundIndex > -1)
|
||||
{
|
||||
Sounds.SoundManager.Stop(basicSoundIndex);
|
||||
basicSoundIndex = -1;
|
||||
}
|
||||
if (largeSoundIndex > -1)
|
||||
{
|
||||
Sounds.SoundManager.Stop(largeSoundIndex);
|
||||
largeSoundIndex = -1;
|
||||
}
|
||||
|
||||
hull.RemoveFire(this);
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ namespace Barotrauma
|
||||
private set;
|
||||
}
|
||||
|
||||
public static bool LockX, LockY;
|
||||
|
||||
public static List<Submarine> SavedSubmarines = new List<Submarine>();
|
||||
|
||||
public static readonly Vector2 GridSize = new Vector2(16.0f, 16.0f);
|
||||
@@ -754,6 +756,11 @@ namespace Barotrauma
|
||||
if (Level.Loaded == null) return;
|
||||
|
||||
if (subBody == null) return;
|
||||
|
||||
subBody.Body.LinearVelocity = new Vector2(
|
||||
LockX ? 0.0f : subBody.Body.LinearVelocity.X,
|
||||
LockY ? 0.0f : subBody.Body.LinearVelocity.Y);
|
||||
|
||||
|
||||
subBody.Update(deltaTime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user