Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2011, 2:15:45 PM (14 years ago)
Author:
willis
Message:

renamed Masterable to FormationController, some minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/formation/src/orxonox/controllers/AIController.cc

    r8965 r8978  
    118118        if (this->state_ == SLAVE && this->mode_==ATTACK)
    119119        {
    120             if (!this->target_)
    121             {
    122                this->searchNewTarget();
    123             }
     120            // search enemy
     121            random = rnd(maxrand);
     122            if (random < 75 && (!this->target_))
     123                this->searchNewTarget();
    124124
    125125            // next enemy
Note: See TracChangeset for help on using the changeset viewer.