aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/world.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/world.c b/src/world.c
index 0e7c975..a07bfcd 100644
--- a/src/world.c
+++ b/src/world.c
@@ -202,16 +202,6 @@ KfError removeEntityFromWorld(World * world, EntityId id) {
if (pushVacantId(world, id) != KFSUCCESS)
return KFERROR;
- // Move back entities.
- // for (i = pos; i < world->entitiesCount - 1; ++i)
- // world->entities[i] = world->entities[i + 1];
-
- // Update lookup.
- // for (i = id + 1; i < world->lookUpSize; ++i)
- // if (world->lookUp[i] != ENTITY_ID_NONE)
- // --world->lookUp[i];
-
- // This is a replacement for the code above. It was buggy.
for (i = pos; i < world->entitiesCount - 1; ++i) {
// Move back entities
world->entities[i] = world->entities[i + 1];