Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1305


Ignore:
Timestamp:
May 15, 2008, 11:00:06 PM (17 years ago)
Author:
scheusso
Message:

bugfix in createship in connectionmanager/register more variables in worldentity

Location:
code/branches/merge/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/network/ConnectionManager.cc

    r1299 r1305  
    308308      classname = id->getName();
    309309      network_id = id->getNetworkID();
     310      if(network_id==0)
     311        COUT(3) << "we got a null class id: " << id->getName() << std::endl;
    310312      COUT(4) << "Con.Man:syncClassid:\tnetwork_id: " << network_id << ", classname: " << classname << std::endl;
    311313
     
    378380    no->setRotDamp(1.0);
    379381    no->setCamera("cam_"+client->getID());
     382    no->classID = id->getNetworkID();
    380383    no->create();
    381384   
  • code/branches/merge/src/network/Synchronisable.cc

    r1291 r1305  
    154154  syncData Synchronisable::getData(unsigned char *mem){
    155155    //std::cout << "inside getData" << std::endl;
     156    if(classID==0)
     157      COUT(3) << "classid 0" << std::endl;
    156158    classID=this->getIdentifier()->getNetworkID();
    157159    std::list<synchronisableVariable *>::iterator i;
  • code/branches/merge/src/orxonox/objects/WorldEntity.cc

    r1264 r1305  
    138138      registerVar( (void*) &(this->getOrientation().z), sizeof(this->getOrientation().z), network::DATA, 0x3);
    139139      // register velocity_
    140 //       registerVar( (void*) &(this->getVelocity().x), sizeof(this->getVelocity().x), network::DATA, 0x3);
    141 //       registerVar( (void*) &(this->getVelocity().y), sizeof(this->getVelocity().y), network::DATA, 0x3);
    142 //       registerVar( (void*) &(this->getVelocity().z), sizeof(this->getVelocity().z), network::DATA, 0x3);
    143 //       // register rotationAxis/rate
    144 //       registerVar( (void*) &(this->getRotationRate()), sizeof(this->getRotationRate()), network::DATA, 0x3);
    145 //       registerVar( (void*) &(this->getRotationAxis().x), sizeof(this->getRotationAxis().x), network::DATA, 0x3);
    146 //       registerVar( (void*) &(this->getRotationAxis().y), sizeof(this->getRotationAxis().y), network::DATA, 0x3);
    147 //       registerVar( (void*) &(this->getRotationAxis().z), sizeof(this->getRotationAxis().z), network::DATA, 0x3);
     140      registerVar( (void*) &(this->getVelocity().x), sizeof(this->getVelocity().x), network::DATA, 0x3);
     141      registerVar( (void*) &(this->getVelocity().y), sizeof(this->getVelocity().y), network::DATA, 0x3);
     142      registerVar( (void*) &(this->getVelocity().z), sizeof(this->getVelocity().z), network::DATA, 0x3);
     143      // register rotationAxis/rate
     144      registerVar( (void*) &(this->getRotationRate()), sizeof(this->getRotationRate()), network::DATA, 0x3);
     145      registerVar( (void*) &(this->getRotationAxis().x), sizeof(this->getRotationAxis().x), network::DATA, 0x3);
     146      registerVar( (void*) &(this->getRotationAxis().y), sizeof(this->getRotationAxis().y), network::DATA, 0x3);
     147      registerVar( (void*) &(this->getRotationAxis().z), sizeof(this->getRotationAxis().z), network::DATA, 0x3);
    148148      // register scale of node
    149149      registerVar( (void*) &(this->getScale().x), sizeof(this->getScale().x), network::DATA, 0x3);
     
    153153      registerVar( (void*) &(this->bStatic_), sizeof(this->bStatic_), network::DATA, 0x3);
    154154      //register acceleration
    155       // register velocity_
    156 //       registerVar( (void*) &(this->getAcceleration().x), sizeof(this->getAcceleration().x), network::DATA, 0x3);
    157 //       registerVar( (void*) &(this->getAcceleration().y), sizeof(this->getAcceleration().y), network::DATA, 0x3);
    158 //       registerVar( (void*) &(this->getAcceleration().z), sizeof(this->getAcceleration().z), network::DATA, 0x3);
     155      registerVar( (void*) &(this->getAcceleration().x), sizeof(this->getAcceleration().x), network::DATA, 0x3);
     156      registerVar( (void*) &(this->getAcceleration().y), sizeof(this->getAcceleration().y), network::DATA, 0x3);
     157      registerVar( (void*) &(this->getAcceleration().z), sizeof(this->getAcceleration().z), network::DATA, 0x3);
    159158    }
    160159
Note: See TracChangeset for help on using the changeset viewer.