From 0af22ec50f1ca5e87894c0be6675304862466ba4 Mon Sep 17 00:00:00 2001 From: Matei Date: Sat, 13 May 2006 05:54:01 +0000 Subject: [PATCH] # Fixed a bug which was causing the gather action to not actually gather resources. This was SVN commit r3859. --- .../data/mods/official/entities/template_entity_script.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/binaries/data/mods/official/entities/template_entity_script.js b/binaries/data/mods/official/entities/template_entity_script.js index 97e3701b12..96fa8a9bbc 100644 --- a/binaries/data/mods/official/entities/template_entity_script.js +++ b/binaries/data/mods/official/entities/template_entity_script.js @@ -697,15 +697,12 @@ function entityEventGeneric( evt ) case ACTION_ATTACK: this.performAttack( evt ); break; case ACTION_GATHER: - if ( !this.actions.gather ) - evt.preventDefault(); evt.notifyType = NOTIFY_GATHER; - + this.performGather( evt ); // Change our gather animation based on the type of target var a = this.actions.gather; this.setActionParams( ACTION_GATHER, 0.0, a.range, a.speed, "gather_" + evt.target.traits.supply.subtype ); - break; case ACTION_HEAL: this.performHeal( evt ); break;