Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

fixed the deviation

File:
1 edited

Legend:

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

    r10721 r10722  
    144144  Vector tmp = this->getDefaultTarget()->getAbsCoor() - this->getAbsCoor();
    145145
    146   pj->setVelocity(this->getParent()->getVelocity() + this->getAbsDir().apply(tmp.getNormalized())*160);
     146  pj->setVelocity(this->getParent()->getVelocity() + (tmp.getNormalized())*160);
    147147
    148148  pj->setAbsCoor(this->getEmissionPoint());
Note: See TracChangeset for help on using the changeset viewer.