Changeset 8600 for code/branches/portals2/src/modules/portals
- Timestamp:
- May 26, 2011, 3:56:04 PM (14 years ago)
- Location:
- code/branches/portals2/src/modules/portals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/portals2/src/modules/portals/PortalEndPoint.cc
r8599 r8600 32 32 #include "portals/PortalLink.h" 33 33 #include "worldentities/MobileEntity.h" 34 34 #include <ctime> 35 35 36 36 namespace orxonox … … 42 42 std::map<unsigned int, PortalEndPoint *> PortalEndPoint::idMap_s; 43 43 44 PortalEndPoint::PortalEndPoint(BaseObject* creator) : StaticEntity(creator), id_(0), trigger_( new DistanceMultiTrigger(this)), reenterDelay_(0)44 PortalEndPoint::PortalEndPoint(BaseObject* creator) : StaticEntity(creator), id_(0), trigger_(NULL), reenterDelay_(0) 45 45 { 46 46 RegisterObject(PortalEndPoint); 47 48 this->trigger_ = new DistanceMultiTrigger(this); 47 49 this->trigger_->setName("portal"); 48 50 this->attach(trigger_); … … 51 53 PortalEndPoint::~PortalEndPoint() 52 54 { 53 55 if(this->isInitialized() && this->trigger_ != NULL) 56 delete this->trigger_; 54 57 } 55 58 … … 134 137 this->recentlyJumpedOut_.insert(entity); 135 138 136 139 // adjust 137 140 entity->setPosition(this->getWorldPosition()); 138 141 entity->rotate(this->getWorldOrientation()); -
code/branches/portals2/src/modules/portals/PortalLink.cc
r8599 r8600 45 45 PortalLink::~PortalLink() 46 46 { 47 47 48 } 48 49
Note: See TracChangeset
for help on using the changeset viewer.