Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2011, 1:17:38 PM (13 years ago)
Author:
anbueche
Message:

comments added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/portals/src/modules/portals/PortalEndPoint.cc

    r8290 r8454  
    5353    bool PortalEndPoint::execute(bool bTriggered, BaseObject* trigger)
    5454    {
     55        if(!this->isActive())
     56            return true;
     57       
    5558        MultiTriggerContainer * cont = orxonox_cast<MultiTriggerContainer *>(trigger);
    5659        if(cont == 0)
     
    6467        }
    6568       
    66         if(this->getAttachedObjects().find(orxonox_cast<WorldEntity *>(originatingTrigger)) == this->getAttachedObjects().end())  // only necessary if events have the same name
    67             return true;
    68        
    6969        MobileEntity * entity = orxonox_cast<MobileEntity *>(cont->getData());
    7070        if(entity == 0)
     
    7373        if(bTriggered)
    7474        {
    75             if(this->recentlyJumpedOut_.find(entity) == this->recentlyJumpedOut_.end())  // only enter the portal if not recently jumped out of it
     75            if(this->recentlyJumpedOut_.find(entity) == this->recentlyJumpedOut_.end())  // only enter the portal if not just jumped out of it
    7676            {
    7777                PortalLink::use(entity, this);
     
    8989    {
    9090        this->recentlyJumpedOut_.insert(entity);
     91       
    9192        entity->setPosition(this->getWorldPosition());
    9293        entity->rotate(this->getWorldOrientation());
    9394        entity->setVelocity(this->getWorldOrientation() * entity->getVelocity());
     95        entity->setVelocity(entity->getVelocity() * 1.5);
    9496    }
    9597
Note: See TracChangeset for help on using the changeset viewer.