Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2016, 8:47:51 PM (9 years ago)
Author:
landauf
Message:

fixed compiler error (MSVC): static members with non-integral type must be initialized in the .cc file
using upper-case letters for constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS15/src/orxonox/controllers/ArtificialController.cc

    r10631 r11028  
    9494            return;
    9595
    96         static const float hardcoded_projectile_speed = 750;
    97 
    98         this->targetPosition_ = getPredictedPosition(this->getControllableEntity()->getWorldPosition(), hardcoded_projectile_speed, this->target_->getWorldPosition(), this->target_->getVelocity());
     96        static const float HARDCODED_PROJECTILE_SPEED = 750;
     97
     98        this->targetPosition_ = getPredictedPosition(this->getControllableEntity()->getWorldPosition(), HARDCODED_PROJECTILE_SPEED, this->target_->getWorldPosition(), this->target_->getVelocity());
    9999        this->bHasTargetPosition_ = (this->targetPosition_ != Vector3::ZERO);
    100100
Note: See TracChangeset for help on using the changeset viewer.