littlejsengine 1.18.18 → 1.18.19

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.
@@ -35,7 +35,7 @@ const engineName = 'LittleJS';
35
35
  * @type {string}
36
36
  * @default
37
37
  * @memberof Engine */
38
- const engineVersion = '1.18.18';
38
+ const engineVersion = '1.18.19';
39
39
 
40
40
  /** Frames per second to update
41
41
  * @type {number}
@@ -2981,8 +2981,6 @@ class EngineObject
2981
2981
 
2982
2982
  // notify objects of collision and check if should be resolved
2983
2983
  const collide1 = this.collideWithObject(o);
2984
- // callback may have destroyed us; stop resolving against more objects
2985
- if (this.destroyed) return;
2986
2984
  const collide2 = o.collideWithObject(this);
2987
2985
  if (!collide1 || !collide2) continue;
2988
2986
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "littlejsengine",
3
- "version": "1.18.18",
3
+ "version": "1.18.19",
4
4
  "description": "LittleJS - Tiny and Fast HTML5 Game Engine",
5
5
  "main": "dist/littlejs.esm.js",
6
6
  "types": "dist/littlejs.d.ts",
package/src/engine.js CHANGED
@@ -32,7 +32,7 @@ const engineName = 'LittleJS';
32
32
  * @type {string}
33
33
  * @default
34
34
  * @memberof Engine */
35
- const engineVersion = '1.18.18';
35
+ const engineVersion = '1.18.19';
36
36
 
37
37
  /** Frames per second to update
38
38
  * @type {number}
@@ -215,8 +215,6 @@ class EngineObject
215
215
 
216
216
  // notify objects of collision and check if should be resolved
217
217
  const collide1 = this.collideWithObject(o);
218
- // callback may have destroyed us; stop resolving against more objects
219
- if (this.destroyed) return;
220
218
  const collide2 = o.collideWithObject(this);
221
219
  if (!collide1 || !collide2) continue;
222
220