From 52b8b3d865c3a4473bd63405a365d0f1b63d817c Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 23 Mar 2018 13:23:55 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 68 bytes modified --- 21g30t1e75.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index e4a24c7..60443bd 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -500,9 +500,11 @@ GameLib.CustomCode.prototype.createGameObject = function( array = this.food; } + var isTail = false; + if (objectType === GameLib.CustomCode.OBJECT_TYPE_SNAKE_BODY) { - switch (type) { + switch (type) { case GameLib.CustomCode.BODY_TYPE_BREAD_BACON : mesh = this.createGameMesh(this.materialBreadBacon); break; @@ -526,6 +528,7 @@ GameLib.CustomCode.prototype.createGameObject = function( break; case GameLib.CustomCode.BODY_TYPE_BREAD_TAIL : mesh = this.createGameMesh(this.materialBreadTail); + isTail = true; break; case GameLib.CustomCode.BODY_TYPE_BREAD_CORNER : mesh = this.createGameMesh(this.materialBreadCorner); @@ -555,7 +558,10 @@ GameLib.CustomCode.prototype.createGameObject = function( type, mesh, position, - orientation + orientation, + null, + null, + isTail ) gameObject.applyToMesh(true); break;