Browse Source

bug #1886: Added new position args back for physics.removeObject

tags/v0.10.6^2
Shaun 2 years ago
parent
commit
9bb27ba98c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/server/objects/objBase.js

+ 1
- 1
src/server/objects/objBase.js View File

@@ -313,7 +313,7 @@ module.exports = {
this.y = yNew;

if (physics.addObject(this, xNew, yNew))
physics.removeObject(this, xOld, yOld);
physics.removeObject(this, xOld, yOld, xNew, yNew);
else {
this.x = xOld;
this.y = yOld;


Loading…
Cancel
Save