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 {