Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 9:41:38 AM (8 years ago)
Author:
gania
Message:

synchronized AI with a static tick counter

File:
1 edited

Legend:

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

    r10923 r10925  
    211211                                                           hardcoded_projectile_speed, this->target_->getWorldPosition(),
    212212                                                           this->target_->getVelocity());
     213        if (!this->target_ || !this->getControllableEntity())
     214            return false;
    213215        //Vector3.isNaN() is what I used on my machine and it worked...
    214216        if (!(std::isnan(newPositionOfTarget.x) || std::isnan(newPositionOfTarget.y) || std::isnan(newPositionOfTarget.z)))
Note: See TracChangeset for help on using the changeset viewer.