mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Release 0.95.
This commit is contained in:
parent
fe1d808025
commit
571580a2f4
4 changed files with 7 additions and 5 deletions
|
@ -96,6 +96,7 @@ namespace ClassicalSharp {
|
|||
public void Dispose() {
|
||||
game.OnNewMap -= OnNewMap;
|
||||
game.OnNewMapLoaded -= OnNewMapLoaded;
|
||||
graphics.DeleteDynamicVb( weatherVb );
|
||||
}
|
||||
|
||||
int GetRainHeight( int x, int z ) {
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace ClassicalSharp {
|
|||
|
||||
public static class Utils {
|
||||
|
||||
public static string AppName = "ClassicalSharp 0.9";
|
||||
public static string AppName = "ClassicalSharp 0.95";
|
||||
|
||||
public static void Clamp( ref float value, float min, float max ) {
|
||||
if( value < min ) value = min;
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Launcher {
|
|||
|
||||
public partial class MainForm : Form {
|
||||
|
||||
public const string AppName = "ClassicalSharp Launcher 0.9";
|
||||
public const string AppName = "ClassicalSharp Launcher 0.95";
|
||||
|
||||
public MainForm() {
|
||||
InitializeComponent();
|
||||
|
|
|
@ -48,14 +48,15 @@ namespace SharpDX
|
|||
|
||||
if( comPointer != IntPtr.Zero ) {
|
||||
if( !disposing ) {
|
||||
string text = String.Format( "Warning: Live ComObject [0x{0:X}], potential memory leak: {1}", comPointer.ToInt64(), GetType().Name );
|
||||
string text = String.Format( "Warning: Live ComObject [0x{0:X}], potential memory leak: {1}",
|
||||
comPointer.ToInt64(), GetType().Name );
|
||||
Console.WriteLine( text );
|
||||
}
|
||||
|
||||
int refCount = Marshal.Release( comPointer );
|
||||
if( refCount > 0 ) {
|
||||
string text = String.Format( "Warning: ComObject [0x{0:X}] still has some references, potential memory leak: {1}", comPointer.ToInt64(), GetType().Name );
|
||||
Console.WriteLine( text );
|
||||
string text = String.Format( "Warning: ComObject [0x{0:X}] still has some references, potential memory leak: {1} ({2})",
|
||||
comPointer.ToInt64(), GetType().Name, refCount );
|
||||
}
|
||||
comPointer = IntPtr.Zero;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue