- Timestamp:
- Dec 7, 2015, 9:41:38 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/FightingController.cc
r10923 r10925 211 211 hardcoded_projectile_speed, this->target_->getWorldPosition(), 212 212 this->target_->getVelocity()); 213 if (!this->target_ || !this->getControllableEntity()) 214 return false; 213 215 //Vector3.isNaN() is what I used on my machine and it worked... 214 216 if (!(std::isnan(newPositionOfTarget.x) || std::isnan(newPositionOfTarget.y) || std::isnan(newPositionOfTarget.z)))
Note: See TracChangeset
for help on using the changeset viewer.