From cd407ead0f5b0dab0c2246317acf730dfac207fb Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 15 Mar 2018 15:32:34 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 55 bytes modified --- 21g30t1e75.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index c26fb27..90ffbf2 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -292,7 +292,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { body.mesh.updateInstance('visible'); } - if (body.orientation !== this.snake[index-1].orientation) { + if ( + body.orientation !== this.snake[index-1].orientation && + (index + 1) < this.snake.length + ) { /** * Our orientation changed - we should make a corner */