Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1291


Ignore:
Timestamp:
May 15, 2008, 5:18:08 PM (17 years ago)
Author:
scheusso
Message:

some changes got lost(camera)

Location:
code/branches/merge
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/TODO

    r1264 r1291  
    1 very urgent: make sure receiver thread of connectionmanager is
     1- very urgent: make sure receiver thread of connectionmanager is
    22threadsafe (event_type_receive, findclient)
     3- check why we can only use spaceship mesh defined in level file for
     4clientship
  • code/branches/merge/src/network/Synchronisable.cc

    r1264 r1291  
    5656  * calls registarAllVariables, that has to be implemented by the inheriting classID
    5757  */
    58   Synchronisable::Synchronisable(){
     58  Synchronisable::Synchronisable():
     59      backsync_(false),
     60      datasize(0) {
    5961    RegisterRootObject(Synchronisable);
    6062    static int idCounter=0;
    61     datasize=0;
    6263    objectID=idCounter++;
    6364    syncList = new std::list<synchronisableVariable *>;
  • code/branches/merge/src/orxonox/objects/Camera.cc

    r1289 r1291  
    6060  {
    6161    CameraHandler::getInstance()->releaseFocus(this);
     62    GraphicsEngine::getSingleton().getSceneManager()->getRootSceneNode()->removeAndDestroyChild(cameraNode_->getName());
    6263  }
    6364
  • code/branches/merge/src/orxonox/objects/SpaceShip.cc

    r1289 r1291  
    147147    void SpaceShip::init()
    148148    {
    149     if ((server_ || ( network::Client::getSingleton() && network::Client::getSingleton()->getShipID()==objectID ) ))
    150     {
    151           if (!setMouseEventCallback_)
    152           {
    153               InputManager::addMouseHandler(this, "SpaceShip");
    154               setMouseEventCallback_ = true;
    155           }
    156     }
     149        if ((server_ || ( network::Client::getSingleton() && network::Client::getSingleton()->getShipID()==objectID ) ))
     150        {
     151              if (!setMouseEventCallback_)
     152              {
     153                  InputManager::addMouseHandler(this, "SpaceShip");
     154                  setMouseEventCallback_ = true;
     155              }
     156        }
    157157
    158158        // START CREATING THRUSTER
Note: See TracChangeset for help on using the changeset viewer.