Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 11:02:58 PM (16 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/pawns/SpaceShip.cc

    r2453 r2454  
    9595        if (type != WorldEntity::Dynamic)
    9696        {
    97             ThrowException(PhysicsViolation, "Cannot tell a SpaceShip not to be dynamic!");
     97            CCOUT(1) << "Error: Cannot tell a SpaceShip not to be dynamic! Ignoring." << std::endl;
     98            assert(false); // Only in debug mode
    9899            return false;
    99100        }
Note: See TracChangeset for help on using the changeset viewer.