From f7f87b199fb1dae0fc8b9588f9a258f178dba0d3 Mon Sep 17 00:00:00 2001 From: Regalis11 Date: Sat, 6 Jun 2015 16:03:16 +0300 Subject: [PATCH] resharper cleanup --- Subsurface/Items/Components/OxygenGenerator.cs | 6 ++---- Subsurface/Items/Components/Signal/LightComponent.cs | 2 +- Subsurface/Physics/PhysicsBody.cs | 2 +- Subsurface/Screens/Screen.cs | 3 +-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Subsurface/Items/Components/OxygenGenerator.cs b/Subsurface/Items/Components/OxygenGenerator.cs index 1a43e3e52..f060f2be8 100644 --- a/Subsurface/Items/Components/OxygenGenerator.cs +++ b/Subsurface/Items/Components/OxygenGenerator.cs @@ -24,10 +24,8 @@ namespace Subsurface.Items.Components ventList = new List(); - item.linkedTo.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler( - delegate(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) - { GetVents(); } - ); + item.linkedTo.CollectionChanged += delegate(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + { GetVents(); }; } public override void Update(float deltaTime, Camera cam) diff --git a/Subsurface/Items/Components/Signal/LightComponent.cs b/Subsurface/Items/Components/Signal/LightComponent.cs index 4c311b4b8..8563a9c8a 100644 --- a/Subsurface/Items/Components/Signal/LightComponent.cs +++ b/Subsurface/Items/Components/Signal/LightComponent.cs @@ -50,7 +50,7 @@ namespace Subsurface.Items.Components isActive = !isActive; break; case "set_state": - isActive = (signal == "0") ? false : true; + isActive = (signal != "0"); break; } } diff --git a/Subsurface/Physics/PhysicsBody.cs b/Subsurface/Physics/PhysicsBody.cs index 45de3635c..1955c4f63 100644 --- a/Subsurface/Physics/PhysicsBody.cs +++ b/Subsurface/Physics/PhysicsBody.cs @@ -190,7 +190,7 @@ namespace Subsurface else if (radius != 0.0f) { body = BodyFactory.CreateCircle(Game1.world, radius, density); - bodyShape = Shape.Circle; ; + bodyShape = Shape.Circle; } else { diff --git a/Subsurface/Screens/Screen.cs b/Subsurface/Screens/Screen.cs index 11b393f5d..97132c386 100644 --- a/Subsurface/Screens/Screen.cs +++ b/Subsurface/Screens/Screen.cs @@ -1,5 +1,4 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Graphics; namespace Subsurface {