- Timestamp:
- Dec 14, 2011, 2:15:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/formation/src/orxonox/controllers/AIController.cc
r8965 r8978 118 118 if (this->state_ == SLAVE && this->mode_==ATTACK) 119 119 { 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(); 124 124 125 125 // next enemy
Note: See TracChangeset
for help on using the changeset viewer.