Skip to content

Commit

Permalink
Fix bug: tile occupied after changing face
Browse files Browse the repository at this point in the history
  • Loading branch information
mhluska committed Jun 24, 2016
1 parent 85baf80 commit b88d430
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/snake.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ module.exports = class Snake {
_removeEdgeMesh() {
this.mesh.remove(this.tail);
this.size -= 1;

// NOTE(maros): This is the new tail after updating `this.size`.
this.world.enable(this.tail.position.toArray());
}

_getTailFace() {
Expand Down

0 comments on commit b88d430

Please sign in to comment.