diff --git a/autqzs1rvq.js b/autqzs1rvq.js index 3ff83a3..c2a9fb2 100644 --- a/autqzs1rvq.js +++ b/autqzs1rvq.js @@ -62,6 +62,7 @@ this.scene.meshes.map( function(mesh) { if (mesh.burningTreeParticleEngine) { + mesh.burning = false; mesh.burningTreeParticleEngine.remove(); mesh.burningTreeParticleEngine = null; } @@ -447,18 +448,19 @@ * Do nothing, this tree is burning */ } else { - - GameLib.Event.Emit( - GameLib.Event.GAME_DATA, - { - event : 'treeBurned' - } - ); mesh.burning = true; this.treesBurning++; + GameLib.Event.Emit( + GameLib.Event.GAME_DATA, + { + event : 'treeBurned', + treesBurning : this.treesBurning + } + ); + this.minimumRendererRed += 0.01; if (mesh.position.x < 0) {