1
0
forked from 0ad/0ad

# Fixed a bug which was causing the gather action to not actually gather resources.

This was SVN commit r3859.
This commit is contained in:
Matei 2006-05-13 05:54:01 +00:00
parent dcbd118356
commit 0af22ec50f

View File

@ -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;