Changeset 8096 in orxonox.OLD for branches/network/src/world_entities/playable.cc
- Timestamp:
- Jun 1, 2006, 6:36:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/playable.cc
r8055 r8096 79 79 // this->setPlayer(NULL); 80 80 // IN ITS DESTRUCTOR. 81 detachCamera(); 81 82 assert(this->currentPlayer == NULL); 82 83 } … … 281 282 */ 282 283 void Playable::detachCamera() 283 {} 284 { 285 PRINTF(0)("detach camera\n"); 286 if ( (PNode*)(State::getCameraTarget()) == this ) 287 { 288 PRINTF(0)("lookAt nullParent\n"); 289 290 State::getCameraNode()->setParentSoft(PNode::getNullParent()); 291 State::getCameraTargetNode()->setParentSoft(PNode::getNullParent()); 292 293 State::getCamera()->lookAt( PNode::getNullParent() ); 294 } 295 } 284 296 285 297
Note: See TracChangeset
for help on using the changeset viewer.