Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6460 in orxonox.OLD


Ignore:
Timestamp:
Jan 10, 2006, 2:05:57 AM (18 years ago)
Author:
patrick
Message:

network: skybox parenting fix

Location:
branches/network/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/game_world.cc

    r6459 r6460  
    131131  this->shell = new Shell();
    132132
     133  State::setCurrentStoryEntity(dynamic_cast<StoryEntity*>(this));
    133134  this->dataTank->init();
    134135}
     
    199200  this->isPaused = false;
    200201  this->isRunning = true;
    201 
    202   State::setCurrentStoryEntity(dynamic_cast<StoryEntity*>(this));
    203202
    204203  this->run();
  • branches/network/src/story_entities/multi_player_world_data.cc

    r6459 r6460  
    181181    assert( playableList != NULL);
    182182
    183     std::list<BaseObject*>::const_iterator entity;
    184     for (entity = playableList->begin(); entity != playableList->end(); entity++)
    185       PRINTF(0)("Got a playable, class: %s, name: %s\n", (*entity)->getClassName(), (*entity)->getName());
    186 
    187 
    188183    if (playableList != NULL)
    189184    {
     
    192187    }
    193188
     189    /* some debug output */
     190    PRINT(0)("==================================================\n");
     191    std::list<BaseObject*>::const_iterator entity;
     192    for (entity = playableList->begin(); entity != playableList->end(); entity++)
     193      PRINTF(0)("Got a playable, class: %s, name: %s\n", (*entity)->getClassName(), (*entity)->getName());
     194
     195
     196    PNode* cam = State::getCameraTarget();
     197    PRINT(0)("Camera has target - class: %s, name: %s\n", cam->getClassName(), cam->getName());
     198
     199
     200    PRINT(0)("==================================================\n");
     201
     202
    194203    /* init the pnode tree */
    195204    PNode::getNullParent()->init();
Note: See TracChangeset for help on using the changeset viewer.