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

View File

@@ -24,10 +24,8 @@ namespace Subsurface.Items.Components
ventList = new List<Vent>();
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)

View File

@@ -50,7 +50,7 @@ namespace Subsurface.Items.Components
isActive = !isActive;
break;
case "set_state":
isActive = (signal == "0") ? false : true;
isActive = (signal != "0");
break;
}
}

View File

@@ -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
{

View File

@@ -1,5 +1,4 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Graphics;
namespace Subsurface
{