More resharper cleanup

This commit is contained in:
Regalis11
2015-06-07 18:03:08 +03:00
parent f786cd3016
commit 34b79c85d6
62 changed files with 99 additions and 195 deletions
+2 -6
View File
@@ -437,7 +437,7 @@ namespace Subsurface
body.ResetDynamics();
if (body.Position.Length() > 1000.0f)
{
this.Remove();
Remove();
return;
}
}
@@ -955,7 +955,7 @@ namespace Subsurface
{
int index = components.IndexOf(ic);
new NetworkEvent(NetworkEventType.UpdateComponent, this.ID, isClient, index);
new NetworkEvent(NetworkEventType.UpdateComponent, ID, isClient, index);
}
public override void FillNetworkData(NetworkEventType type, NetOutgoingMessage message, object data)
@@ -969,8 +969,6 @@ namespace Subsurface
message.Write((int)data);
components[(int)data].FillNetworkData(type, message);
break;
default:
break;
}
}
@@ -987,8 +985,6 @@ namespace Subsurface
if (componentIndex < 0 || componentIndex > components.Count - 1) return;
components[componentIndex].ReadNetworkData(type, message);
break;
default:
break;
}
}