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:
parent
0af22ec50f
commit
03f21c772f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user