From e123a4c7a92252d65fb2f2fc16ff54e86de024df Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 23 Mar 2018 16:38:38 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 108 bytes modified --- 21g30t1e75.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 35e6f36..1d95555 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1284,6 +1284,8 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { var temp = null; var advanced = false; + this.backup(); + this.snake.map( function(body, index) { @@ -1504,13 +1506,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { this.state.turning = false; - if (this.state.eating) { - /** - * make a backup of the snake here - */ - this.backup(); - } - this.state.eating = false; this.visualizeGrid();