Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 10:05:48 PM (18 years ago)
Author:
nicolasc
Message:

fixed the deviation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/rf_cannon.cc

    r10719 r10722  
    138138  Vector tmp = this->getDefaultTarget()->getAbsCoor() - this->getAbsCoor();
    139139
    140   pj->setVelocity(this->getParent()->getVelocity() + this->getAbsDir().apply(tmp.getNormalized())*190);
     140  pj->setVelocity(this->getParent()->getVelocity() + (tmp.getNormalized())*190);
    141141
    142142  pj->setAbsCoor(this->emissionPoint[this->activeBarrel]->getAbsCoor());
Note: See TracChangeset for help on using the changeset viewer.