Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing on XBOX/WP7 version

  • Loading branch information...
commit f6558288ca18a86f4d9f6eee71fc2b17dab76cf2 1 parent f319086
unknown authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 ArtemisXBOX_PHONE7/EntityWorld.cs
View
24 ArtemisXBOX_PHONE7/EntityWorld.cs
@@ -94,6 +94,18 @@ public ArtemisPool Pool
public void LoopStart()
{
+ if (!deleted.IsEmpty)
+ {
+ for (int i = 0, j = deleted.Size(); j > i; i++)
+ {
+ Entity e = deleted.Get(i);
+ entityManager.Remove(e);
+ groupManager.Remove(e);
+ e.DeletingState = false;
+ }
+ deleted.Clear();
+ }
+
if (!refreshed.IsEmpty)
{
for (int i = 0, j = refreshed.Size(); j > i; i++)
@@ -104,18 +116,6 @@ public void LoopStart()
}
refreshed.Clear();
}
-
- if (!deleted.IsEmpty)
- {
- for (int i = 0, j = deleted.Size(); j > i; i++)
- {
- Entity e = deleted.Get(i);
- entityManager.Remove(e);
- groupManager.Remove(e);
- e.DeletingState = false;
- }
- deleted.Clear();
- }
}
public Dictionary<Entity,Bag<Component>> GetCurrentState() {
Please sign in to comment.
Something went wrong with that request. Please try again.