Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 2 bytes modified

beta.r3js.org
-=yb4f310 2018-03-12 21:10:47 +01:00
parent 0b5660521a
commit 26a29ef8fb
1 changed files with 2 additions and 2 deletions

View File

@ -190,12 +190,12 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
this.snake = this.snake.reduce(
function(result, body, index) {
if ((index + 1) > this.snake.length) {
if ((index + 1) === this.snake.length) {
/**
* we're done
*/
return result;
} else if ((index + 1) === this.snake.length) {
} else if ((index) === this.snake.length) {
/**
* Pop it
*/