Launcher bugfixes, fixed submarine position syncing, previewing the sub after round ends, wiring bugfix, slower reactor overheat, itemlabel, wifi components
This commit is contained in:
@@ -29,16 +29,14 @@ namespace Subsurface
|
||||
|
||||
public static bool IsValid(float value)
|
||||
{
|
||||
return (!float.IsInfinity(value) && !float.IsInfinity(value));
|
||||
return (!float.IsInfinity(value) && !float.IsNaN(value));
|
||||
}
|
||||
|
||||
public static bool IsValid(Vector2 vector)
|
||||
{
|
||||
return (!float.IsInfinity(vector.X) && !float.IsInfinity(vector.Y) && !float.IsNaN(vector.X) && !float.IsNaN(vector.Y));
|
||||
return (IsValid(vector.X) && IsValid(vector.Y));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static float CurveAngle(float from, float to, float step)
|
||||
{
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ namespace Subsurface
|
||||
{
|
||||
font = contentManager.Load<SpriteFont>(file);
|
||||
}
|
||||
catch
|
||||
catch (Exception e)
|
||||
{
|
||||
DebugConsole.ThrowError("Loading font ''"+file+"'' failed");
|
||||
DebugConsole.ThrowError("Loading font ''"+file+"'' failed", e);
|
||||
}
|
||||
|
||||
return font;
|
||||
|
||||
Reference in New Issue
Block a user