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:
Regalis
2015-08-21 20:21:22 +03:00
parent c044d27071
commit d8904eaa56
43 changed files with 546 additions and 228 deletions
+3 -5
View File
@@ -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)
{
+2 -2
View File
@@ -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;