Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4384 in orxonox.OLD


Ignore:
Timestamp:
May 29, 2005, 9:24:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: further optimisations for the appliement of fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/physics/physics_connection.cc

    r4378 r4384  
    5151void PhysicsConnection::apply(const float& dt) const
    5252{
    53   if (likely(this->type == PCON_PhysIField))
     53  if (likely(this->type == PCON_PhysIField && this->field->getMagnitude() != 0.0))
    5454      this->subject->applyField(this->field, dt);
    5555  else ;
Note: See TracChangeset for help on using the changeset viewer.