From 77a24fdb5ba90a5c35bb2ad46b17a890b235c15b Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 27 Nov 2017 11:27:47 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (orfy8cilgg.js) 45 bytes modified --- orfy8cilgg.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/orfy8cilgg.js b/orfy8cilgg.js index 96fac97..c5f58e8 100644 --- a/orfy8cilgg.js +++ b/orfy8cilgg.js @@ -797,6 +797,7 @@ if (this.mouseIsDown) */ if (GameLib.Utils.UndefinedOrNull(mesh.burnLife)) { mesh.burnLife = 1; + mesh.burning = false; } if (!mesh.burning) { @@ -804,19 +805,18 @@ if (this.mouseIsDown) mesh.burnLife -= data.delta * 2; if (mesh.burnLife <= 0) { - + mesh.burnLife = 0; this.burnTree(mesh); + } - if (mesh.instance.material.emissive) { - mesh.instance.material.emissive.setRGB( - 1 - mesh.burnLife, - 0, - 0 - ); - } + if (mesh.instance.material.emissive) { + mesh.instance.material.emissive.setRGB( + 1 - mesh.burnLife, + 0, + 0 + ); } } - } } }.bind(this)