# Fixed a bug which was causing the gather action to not actually gather resources.
This was SVN commit r3859.
This commit is contained in:
parent
dcbd118356
commit
0af22ec50f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user