- Timestamp:
- Jun 2, 2010, 2:16:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/worldentities/pawns/FpsPlayer.cc
r7075 r7080 93 93 FpsPlayer::~FpsPlayer() 94 94 { 95 if (this->isInitialized() && this->mesh_.getEntity()) 96 this->detachOgreObject(this->mesh_.getEntity()); 95 if (this->isInitialized()) 96 { 97 if (this->mesh_.getEntity()) 98 this->detachOgreObject(this->mesh_.getEntity()); 99 100 if (this->weaponNode_ && this->getScene()->getSceneManager()) 101 this->getScene()->getSceneManager()->destroySceneNode(this->weaponNode_->getName()); 102 } 97 103 } 98 104
Note: See TracChangeset
for help on using the changeset viewer.