New pump & railguncont sprites, saving fixes (disappearing items fixed?), moving LightManager.ViewPos to railgun when aiming, generating waypoints outside sub, easier wire node editing, characters stand when using a controller, shiftsummary crew status scrolling, stuff

This commit is contained in:
Regalis
2016-01-04 01:03:37 +02:00
parent cb1513f5e6
commit bc9ff32023
29 changed files with 279 additions and 126 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ namespace Barotrauma
public int AlBufferId
{
get { return oggSound.AlBufferId; }
get { return oggSound==null ? -1 : oggSound.AlBufferId; }
}
public static void Init()
@@ -260,7 +260,7 @@ namespace Barotrauma
//System.Diagnostics.Debug.WriteLine("Removing sound " + filePath + " (buffer id" + AlBufferId + ")");
SoundManager.ClearAlSource(AlBufferId);
oggSound.Dispose();
if (oggSound!=null) oggSound.Dispose();
}