From ec65dfb313d0246ea04d87391b916d3fb1df3d3a Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 20 Mar 2018 14:36:44 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 2 bytes modified --- 21g30t1e75.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 95d930b..64fe641 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -252,7 +252,7 @@ GameLib.CustomCode.SnakeBody.prototype.advance = function(orientation, flip) { switch (orientation) { case GameLib.CustomCode.ORIENTATION_UP : - if ((this.position.y + 1) > GameLib.CustomCode.GRID_HEIGHT) { + if ((this.position.y + 1) >= GameLib.CustomCode.GRID_HEIGHT) { crash = true; } else { this.position.y += 1; @@ -273,7 +273,7 @@ GameLib.CustomCode.SnakeBody.prototype.advance = function(orientation, flip) { } break; case GameLib.CustomCode.ORIENTATION_RIGHT : - if ((this.position.x + 1) > GameLib.CustomCode.GRID_WIDTH) { + if ((this.position.x + 1) >= GameLib.CustomCode.GRID_WIDTH) { crash = true; } else { this.position.x += 1;