Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2006, 4:19:10 PM (19 years ago)
Author:
rennerc
Message:

spectator movement works now
old Playables will be deleted
teamchoice random works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/playable.cc

    r8096 r8120  
    7979  // this->setPlayer(NULL);
    8080  // IN ITS DESTRUCTOR.
    81   detachCamera();
     81 
    8282  assert(this->currentPlayer == NULL);
    8383}
     
    283283void  Playable::detachCamera()
    284284{
    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   }
    295285}
    296286
Note: See TracChangeset for help on using the changeset viewer.