Fix some compiler warnings.

This commit is contained in:
Pieter-Jan Briers
2021-09-15 15:55:27 +02:00
parent 918fa8e3b9
commit 52eb581b56
4 changed files with 4 additions and 2 deletions

View File

@@ -62,7 +62,6 @@ namespace Robust.Shared.Maths
public Matrix22 GetInverse()
{
float a = EX.X, b = EY.X, c = EX.Y, d = EY.Y;
Matrix22 B;
float det = a * d - b * c;
if (det != 0.0f)
{

View File

@@ -19,7 +19,6 @@ namespace Robust.Shared.GameObjects
public class EntitySystemManager : IEntitySystemManager
{
[Dependency] private readonly IReflectionManager _reflectionManager = default!;
[Dependency] private readonly IDynamicTypeFactoryInternal _typeFactory = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
#if EXCEPTION_TOLERANCE

View File

@@ -232,6 +232,8 @@ stored in a single array since multiple arrays lead to multiple misses.
_positionIterations = cfg.PositionIterations;
_sleepAllowed = cfg.SleepAllowed;
_timeToSleep = cfg.TimeToSleep;
_linearSlop = cfg.LinearSlop;
_angularSlop = cfg.AngularSlop;
_contactSolver.LoadConfig(cfg);
}
@@ -642,6 +644,7 @@ stored in a single array since multiple arrays lead to multiple misses.
public float VelocityThreshold;
public float Baumgarte;
public float LinearSlop;
public float AngularSlop;
public float MaxLinearCorrection;
public float MaxAngularCorrection;
public int VelocityConstraintsPerThread;

View File

@@ -100,6 +100,7 @@ namespace Robust.Shared.Physics
CfgVar(CVars.VelocityThreshold, value => _islandCfg.VelocityThreshold = value);
CfgVar(CVars.Baumgarte, value => _islandCfg.Baumgarte = value);
CfgVar(CVars.LinearSlop, value => _islandCfg.LinearSlop = value);
CfgVar(CVars.AngularSlop, value => _islandCfg.AngularSlop = value);
CfgVar(CVars.MaxLinearCorrection, value => _islandCfg.MaxLinearCorrection = value);
CfgVar(CVars.MaxAngularCorrection, value => _islandCfg.MaxAngularCorrection = value);
CfgVar(CVars.VelocityConstraintsPerThread, value => _islandCfg.VelocityConstraintsPerThread = value);