This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9661 for ps


Ignore:
Timestamp:
06/25/11 22:56:46 (14 years ago)
Author:
Badmadblacksad
Message:

avoid trying to attack (before gathering) for ever an animal which is not visible anymore (bug not yet met because unlikely)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js

    r9660 r9661  
    284284
    285285    "Order.Gather": function(msg) {
     286        //If target is not visible anymore, give up
     287        if (!this.CheckTargetVisible(this.order.data.target))
     288        {
     289            this.FinishOrder();
     290            return;
     291        }
     292
    286293        // If the target is still alive, we need to kill it first
    287294        if (this.MustKillGatherTarget(this.order.data.target))
Note: See TracChangeset for help on using the changeset viewer.