Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6905 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jan 31, 2006, 5:42:20 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/space_ships/space_ship.cc

    r6904 r6905  
    711711    }
    712712#define __OFFSET_VEL 0.05
    713     if ( fabs( oldVelocity.x - velocity.x ) > __OFFSET_VEL*velocity.x ||
    714          fabs( oldVelocity.y - velocity.y ) > __OFFSET_VEL*velocity.y ||
    715          fabs( oldVelocity.z - velocity.z ) > __OFFSET_VEL*velocity.z )
     713    if ( fabs( oldVelocity.x - velocity.x ) > __OFFSET_VEL*oldVelocity.x+0.01 ||
     714         fabs( oldVelocity.y - velocity.y ) > __OFFSET_VEL*oldVelocity.y+0.01 ||
     715         fabs( oldVelocity.z - velocity.z ) > __OFFSET_VEL*oldVelocity.z+0.01 )
    716716    {
    717717      oldVelocity = velocity;
Note: See TracChangeset for help on using the changeset viewer.