Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 11:02:58 PM (15 years ago)
Author:
rgrieder
Message:

Replaced bad collision type exceptions with asserts. The developer will know about the obvious error immediately and the end end user only sees a warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics_merge/src/orxonox/objects/worldentities/MobileEntity.cc

    r2452 r2454  
    158158        if (type == WorldEntity::Static)
    159159        {
    160             ThrowException(PhysicsViolation, "Cannot tell a MobileEntity to have static collision type");
     160            CCOUT(1) << "Error: Cannot tell a MobileEntity to have static collision type! Ignoring." << std::endl;
     161            assert(false); // Only in debug mode
    161162            return false;
    162163        }
Note: See TracChangeset for help on using the changeset viewer.