mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
fix some resetting of gatherer walk animation
This was SVN commit r17802.
This commit is contained in:
parent
ec43274e2b
commit
652ec4f8e5
1 changed files with 4 additions and 2 deletions
|
|
@ -620,6 +620,8 @@ UnitAI.prototype.UnitFsmSpec = {
|
|||
var dropsiteTypes = cmpResourceDropsite.GetTypes();
|
||||
|
||||
Engine.QueryInterface(this.entity, IID_ResourceGatherer).CommitResources(dropsiteTypes);
|
||||
// Stop showing the carried resource animation.
|
||||
this.SetGathererAnimationOverride();
|
||||
|
||||
// Our next order should always be a Gather,
|
||||
// so just switch back to that order
|
||||
|
|
@ -2752,7 +2754,7 @@ UnitAI.prototype.UnitFsmSpec = {
|
|||
{
|
||||
if (this.CanReturnResource(msg.data.newentity, true))
|
||||
{
|
||||
this.SetGathererAnimationOverride(true);
|
||||
this.SetGathererAnimationOverride();
|
||||
this.PushOrderFront("ReturnResource", { "target": msg.data.newentity, "force": false });
|
||||
}
|
||||
return;
|
||||
|
|
@ -2771,7 +2773,7 @@ UnitAI.prototype.UnitFsmSpec = {
|
|||
{
|
||||
if (this.CanReturnResource(msg.data.newentity, true))
|
||||
{
|
||||
this.SetGathererAnimationOverride(true);
|
||||
this.SetGathererAnimationOverride();
|
||||
this.PushOrder("ReturnResource", { "target": msg.data.newentity, "force": false });
|
||||
}
|
||||
this.PerformGather(msg.data.newentity, true, false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue