Update: CC - Before Render - Moorcow (7p8dxknb7m.js) 40 bytes modified

beta.r3js.org
-=yb4f310 2017-11-15 19:27:10 +01:00
parent 81c8f8f4dd
commit 037a089511
1 changed files with 4 additions and 5 deletions

View File

@ -219,26 +219,25 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.burnTree = function(mesh) { this.burnTree = function(mesh) {
if (mesh.userData.burning) { if (mesh.burning) {
/** /**
* Do nothing, this tree is burning * Do nothing, this tree is burning
*/ */
} else { } else {
mesh.userData.burning = true; mesh.burning = true;
var smokeParticleEngine = this.smokeParticleEngine.clone(); var smokeParticleEngine = this.smokeParticleEngine.clone();
smokeParticleEngine.position = mesh.position.clone(); smokeParticleEngine.position = mesh.position.clone();
smokeParticleEngine.updateInstance('position'); smokeParticleEngine.updateInstance('position');
smokeParticleEngine.enabled = true; smokeParticleEngine.enabled = true;
mesh.userData.smokeParticleEngine = smokeParticleEngine; mesh.smokeParticleEngine = smokeParticleEngine;
var fireParticleEngine = this.fireParticleEngine.clone(); var fireParticleEngine = this.fireParticleEngine.clone();
fireParticleEngine.position = mesh.position.clone(); fireParticleEngine.position = mesh.position.clone();
fireParticleEngine.updateInstance('position'); fireParticleEngine.updateInstance('position');
fireParticleEngine.enabled = true; fireParticleEngine.enabled = true;
mesh.userData.fireParticleEngine = fireParticleEngine; mesh.fireParticleEngine = fireParticleEngine;
} }
} }
} }