quake2ts 0.0.629 → 0.0.631

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quake2ts",
3
- "version": "0.0.629",
3
+ "version": "0.0.631",
4
4
  "description": "Quake II re-release port to TypeScript with WebGL renderer - A complete game engine with physics, networking, and BSP rendering",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -702,6 +702,7 @@ function createTestContext(options) {
702
702
  const entities = {
703
703
  spawn: import_vitest2.vi.fn(() => {
704
704
  const ent = new import_game2.Entity(entityList.length + 1);
705
+ ent.inUse = true;
705
706
  entityList.push(ent);
706
707
  hooks.onEntitySpawn(ent);
707
708
  return ent;
@@ -711,6 +712,7 @@ function createTestContext(options) {
711
712
  if (idx !== -1) {
712
713
  entityList.splice(idx, 1);
713
714
  }
715
+ ent.inUse = false;
714
716
  hooks.onEntityRemove(ent);
715
717
  }),
716
718
  finalizeSpawn: import_vitest2.vi.fn(),
@@ -719,6 +721,7 @@ function createTestContext(options) {
719
721
  if (idx !== -1) {
720
722
  entityList.splice(idx, 1);
721
723
  }
724
+ ent.inUse = false;
722
725
  }),
723
726
  setSpawnRegistry: import_vitest2.vi.fn(),
724
727
  timeSeconds: 10,