From 50dde13a4b780f990ca33f43e6898f1aded9d847 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 15 Mar 2018 15:33:53 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 37 bytes modified --- 21g30t1e75.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { /**