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/StaticEntity.cc

    r2442 r2454  
    9999        if (type == WorldEntity::Kinematic || type == WorldEntity::Dynamic)
    100100        {
    101             ThrowException(PhysicsViolation, "Cannot tell a StaticEntity to have kinematic or dynamic collision type");
     101            CCOUT(1) << "Error: Cannot tell a StaticEntity to have kinematic or dynamic collision type! Ignoring." << std::endl;
     102            assert(false); // Only in debug mode
    102103            return false;
    103104        }
Note: See TracChangeset for help on using the changeset viewer.