Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 1:08:21 PM (9 years ago)
Author:
gania
Message:

hotfix for isnan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/FightingController.cc

    r10888 r10891  
    216216                                                           hardcoded_projectile_speed, this->target_->getWorldPosition(),
    217217                                                           this->target_->getVelocity());
    218         if (!newPositionOfTarget.isNaN())
     218        //Vector3.isNaN() is what I used on my machine and it worked...
     219        if (!(std::isnan(newPositionOfTarget.x) || std::isnan(newPositionOfTarget.y) || std::isnan(newPositionOfTarget.z)))
    219220        {
    220221            this->setPositionOfTarget(newPositionOfTarget);
Note: See TracChangeset for help on using the changeset viewer.