1
0
forked from 0ad/0ad

Made the gather animation start slightly faster after a unit starts gathering, though it's still not perfect.

This was SVN commit r3860.
This commit is contained in:
Matei 2006-05-13 06:21:06 +00:00
parent 0af22ec50f
commit 03f21c772f

View File

@ -699,10 +699,6 @@ function entityEventGeneric( evt )
case ACTION_GATHER:
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;
@ -965,6 +961,12 @@ function entityEventPrepareOrder( evt )
}
evt.notifyType = NOTIFY_GATHER;
this.forceCheckListeners( NOTIFY_ORDER_CHANGE, this );
// 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: