aboutsummaryrefslogtreecommitdiff
path: root/src/world.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-14 00:13:15 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-14 00:13:15 -0600
commit34ce13444db7525b2dc37183675ea6e907fea642 (patch)
treefc158d261255f151accdbfe4f2aaef03d8528c0e /src/world.c
parentb14a7bb1e4e2e71a8fef86fcfec4ad9501768e57 (diff)
Removed ugly comment I didn't like
Diffstat (limited to 'src/world.c')
-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];