RegEx, FindPickable & DrawShadows optimization

This commit is contained in:
Regalis
2015-09-27 17:02:15 +03:00
parent c8ee9e085f
commit 97c3ac1412
8 changed files with 124 additions and 91 deletions
+2 -6
View File
@@ -326,11 +326,7 @@ namespace Subsurface
public void SetTransform(Vector2 simPosition, float rotation)
{
if (body != null)
{
body.SetTransform(simPosition, rotation);
}
if (body != null) body.SetTransform(simPosition, rotation);
Vector2 displayPos = ConvertUnits.ToDisplayUnits(simPosition);
@@ -770,7 +766,7 @@ namespace Subsurface
foreach (Item item in itemList)
{
if (ignoredItems!=null && ignoredItems.Contains(item)) continue;
if (hull != null && item.CurrentHull != hull) continue;
if (hull != item.CurrentHull) continue;
if (item.body != null && !item.body.Enabled) continue;
Pickable pickableComponent = item.GetComponent<Pickable>();