Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 8, 2009, 12:58:47 AM (16 years ago)
Author:
dafrick
Message:

Reverted to revision 2906 (because I'm too stupid to merge correctly, 2nd try will follow shortly. ;))

Location:
code/branches/questsystem5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5

  • code/branches/questsystem5/src/orxonox/objects/worldentities/WorldEntity.cc

    r2907 r2908  
    181181
    182182        // Attach to parent if necessary
    183         registerVariable(this->parentID_,       variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::networkcallback_parentChanged));
     183        registerVariable(this->parentID_,       variableDirection::toclient, new NetworkCallback<WorldEntity>(this, &WorldEntity::parentChanged));
    184184    }
    185185
     
    188188        Network function that object this instance to its correct parent.
    189189    */
    190     void WorldEntity::networkcallback_parentChanged()
     190    void WorldEntity::parentChanged()
    191191    {
    192192        if (this->parentID_ != OBJECTID_UNKNOWN)
     
    362362        this->parentID_ = newParent->getObjectID();
    363363
    364         this->parentChanged();
    365 
    366364        // apply transform to collision shape
    367365        this->collisionShape_->setPosition(this->getPosition());
    368366        this->collisionShape_->setOrientation(this->getOrientation());
    369367        // TODO: Scale
    370 
     368       
    371369        return true;
    372370    }
     
    408406        this->parent_ = 0;
    409407        this->parentID_ = OBJECTID_UNKNOWN;
    410 
    411         this->parentChanged();
    412408
    413409        // reset orientation of the collisionShape (cannot be set within a WE usually)
     
    492488
    493489    // Note: These functions are placed in WorldEntity.h as inline functions for the release build.
    494 #ifndef NDEBUG
     490#ifndef _NDEBUG
    495491    const Vector3& WorldEntity::getPosition() const
    496492    {
     
    660656        case TransformSpace::World:
    661657            ogreRelativeTo = Ogre::Node::TS_WORLD; break;
    662         default: OrxAssert(false, "Faulty TransformSpace::Enum assigned.");
    663658        }
    664659        this->node_->setDirection(direction, ogreRelativeTo, localDirectionVector);
     
    760755        {
    761756        case Dynamic:
    762             this->physicalBody_->setCollisionFlags(this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_STATIC_OBJECT & !btCollisionObject::CF_KINEMATIC_OBJECT);
     757            this->physicalBody_->setCollisionFlags(this->physicalBody_->getCollisionFlags() & !(btCollisionObject::CF_STATIC_OBJECT | btCollisionObject::CF_KINEMATIC_OBJECT));
    763758            break;
    764759        case Kinematic:
Note: See TracChangeset for help on using the changeset viewer.