diff --git a/21g30t1e75.js b/21g30t1e75.js index 90ffbf2..9d40e08 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -256,6 +256,8 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { body.advance( this.state.orientation ); + + backup.orientation = body.orientation; } if (index > 0) { @@ -293,7 +295,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { } if ( - body.orientation !== this.snake[index-1].orientation && + body.orientation !== backup.orientation && (index + 1) < this.snake.length ) { /**