resharper cleanup

This commit is contained in:
Regalis11
2015-06-06 16:03:16 +03:00
parent 1f42e4a4db
commit f7f87b199f
4 changed files with 5 additions and 8 deletions
@@ -24,10 +24,8 @@ namespace Subsurface.Items.Components
ventList = new List<Vent>(); ventList = new List<Vent>();
item.linkedTo.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler( item.linkedTo.CollectionChanged += delegate(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
delegate(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { GetVents(); };
{ GetVents(); }
);
} }
public override void Update(float deltaTime, Camera cam) public override void Update(float deltaTime, Camera cam)
@@ -50,7 +50,7 @@ namespace Subsurface.Items.Components
isActive = !isActive; isActive = !isActive;
break; break;
case "set_state": case "set_state":
isActive = (signal == "0") ? false : true; isActive = (signal != "0");
break; break;
} }
} }
+1 -1
View File
@@ -190,7 +190,7 @@ namespace Subsurface
else if (radius != 0.0f) else if (radius != 0.0f)
{ {
body = BodyFactory.CreateCircle(Game1.world, radius, density); body = BodyFactory.CreateCircle(Game1.world, radius, density);
bodyShape = Shape.Circle; ; bodyShape = Shape.Circle;
} }
else else
{ {
+1 -2
View File
@@ -1,5 +1,4 @@
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Graphics;
namespace Subsurface namespace Subsurface
{ {