Cleanup (removing unused variables & other redundancies, rethrowing exceptions instead of wrapping them in a new exception instance)
This commit is contained in:
@@ -714,7 +714,6 @@ namespace Barotrauma.Items.Components
|
||||
if (gap != null)
|
||||
{
|
||||
gap.Remove();
|
||||
gap.linkedTo.Remove(hull);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,9 +33,7 @@ namespace Barotrauma.Items.Components
|
||||
private bool isHorizontal;
|
||||
|
||||
private bool isStuck;
|
||||
|
||||
private float lastReceivedMessage;
|
||||
|
||||
|
||||
private bool? predictedState;
|
||||
private float resetPredictionTimer;
|
||||
|
||||
|
||||
@@ -95,8 +95,6 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
if (userPos != Vector2.Zero)
|
||||
{
|
||||
float torsoX = character.Position.X;
|
||||
|
||||
Vector2 diff = (item.WorldPosition + userPos) - character.WorldPosition;
|
||||
|
||||
if (character.AnimController.InWater)
|
||||
|
||||
@@ -148,9 +148,7 @@ namespace Barotrauma.Items.Components
|
||||
radarBlips[i].FadeTimer -= (float)Timing.Step * 0.5f;
|
||||
if (radarBlips[i].FadeTimer <= 0.0f) radarBlips.RemoveAt(i);
|
||||
}
|
||||
|
||||
float radius = (GuiFrame.Rect.Height / 2 - 30);
|
||||
|
||||
|
||||
if (IsActive)
|
||||
{
|
||||
float pingRadius = displayRadius * pingState;
|
||||
|
||||
Reference in New Issue
Block a user