Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 9, 2014, 9:50:45 PM (11 years ago)
Author:
noep
Message:

ShipParts can "die" and detach the corresponding Entity while doing so. Issue: The Entity being detached while a hit on a collisionshape is being handled causes a runtime-error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/src/orxonox/worldentities/pawns/Pawn.cc

    r10011 r10023  
    252252    void Pawn::damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs)
    253253    {
    254         orxout() << "damage(): Collision detected on " << this->getName() << ", btCS*: " << cs << endl;
    255 
    256         int collisionShapeIndex = this->isMyCollisionShape(cs);
    257         orxout() << collisionShapeIndex << endl;
     254        //FIXME: (noep) remove debug
     255        //orxout() << "damage(): Collision detected on " << this->getName() << ", btCS*: " << cs << endl;
     256
     257        //int collisionShapeIndex = this->isMyCollisionShape(cs);
     258        //orxout() << collisionShapeIndex << endl;
    258259
    259260        // Applies multiplier given by the DamageBoost Pickup.
     
    587588        // List all attached Objects
    588589        orxout() << "  " << this->getName() << " has the following Objects attached:" << endl;
    589         for (int i=0; i<10; i++)
     590        for (int i=0; i<50; i++)
    590591        {
    591592            if (this->getAttachedObject(i)==NULL)
Note: See TracChangeset for help on using the changeset viewer.