Changeset 7168 for code/trunk/src/orxonox
- Timestamp:
- Aug 16, 2010, 11:26:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/AIController.cc
r7163 r7168 212 212 if (this->target_) 213 213 { 214 215 216 else this->aimAtTarget();217 }214 if (!this->target_->getRadarVisibility()) /* So AI won't shoot invisible Spaceships */ 215 this->forgetTarget(); 216 else this->aimAtTarget(); 217 } 218 218 219 219 if (this->bHasTargetPosition_) … … 245 245 if (this->target_) 246 246 { 247 248 247 if (!this->target_->getRadarVisibility()) /* So AI won't shoot invisible Spaceships */ 248 this->forgetTarget(); 249 249 else this->aimAtTarget(); 250 250 }
Note: See TracChangeset
for help on using the changeset viewer.