From 068a0dfecfbb9a4f53e7d89a4663efbf04f318e9 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 16 Feb 2018 13:06:54 +0100 Subject: [PATCH] Update: CC - Demo New - Entity Loaded (tuby5lj4di.js) 47 bytes modified --- tuby5lj4di.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tuby5lj4di.js b/tuby5lj4di.js index 15737dd..3e0e8e6 100644 --- a/tuby5lj4di.js +++ b/tuby5lj4di.js @@ -152,17 +152,17 @@ GameLib.CustomCode.prototype.generateAnimationVectors = function(attributeData) console.warn('animation not ready'); } - var i; + var i, index0, index1, index2, itemSize; + itemSize = this.offsetAttribute.itemSize; + this.updateInformation = []; - - var index0 = this.offsetAttribute.itemSize * i; - var index1 = index0 + 1; - var index2 = index1 + 1; for (i = 0; i < this.offsetAttribute.count; i++) { - + index0 = itemSize * i; + index1 = index0 + 1; + index2 = index1 + 1; this.updateInformation.push( {