- Timestamp:
- Apr 16, 2015, 4:24:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFS15/src/modules/objects/controllers/TurretController.cc
r10262 r10368 104 104 { 105 105 Pawn* entity = orxonox_cast<Pawn*>(*it); 106 if (!entity || FormationController::sameTeam(t his->getControllableEntity(), entity, this->getGametype()))106 if (!entity || FormationController::sameTeam(turret, entity, this->getGametype())) 107 107 continue; 108 108 tempScore = turret->isInRange(entity); … … 196 196 if(this->isLookingAtTargetNew(Degree(5).valueRadians())) 197 197 { 198 orxout() << target_->getIdentifier()->getName() << " / " << target_->getWorldPosition() << " / " << target_->getHealth() << " / " << target_->getTeam() << " / " << this->getTeam() << " / " << turret->getTeam() << endl; 199 if (target_->getController()) 200 orxout() << target_->getController()->getIdentifier()->getName() << " / " << target_->getController()->getTeam() << endl; 198 201 this->getControllableEntity()->fire(0); 199 202 }
Note: See TracChangeset
for help on using the changeset viewer.