Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 7, 2008, 4:39:42 PM (16 years ago)
Author:
scheusso
Message:

different enhancements in input/network handling and synchronisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/Synchronisable.cc

    r1232 r1245  
    5050 
    5151 
    52   int Synchronisable::state_=1; // detemines wheter we are server (default) or client
     52  int Synchronisable::state_=0x1; // detemines wheter we are server (default) or client
    5353 
    5454  /**
     
    165165    for(i=syncList->begin(); n<datasize && i!=syncList->end(); ++i){
    166166      //(std::memcpy(retVal.data+n, (const void*)(&(i->size)), sizeof(int));
    167       if( ((*i)->mode & state_) == 0 )
     167      if( ((*i)->mode & state_) == 0 ){
     168        COUT(4) << "not getting data: " << std::endl;
    168169        continue;  // this variable should only be received
     170      }
    169171      switch((*i)->type){
    170172      case DATA:
     
    199201    COUT(5) << "Synchronisable: objectID " << vars.objectID << ", classID " << vars.classID << " size: " << vars.length << " synchronising data" << std::endl;
    200202    for(i=syncList->begin(); i!=syncList->end(); i++){
    201       if( ((*i)->mode ^ state_) == 0 )
    202         continue;  // this variable should only be sent
     203      if( ((*i)->mode ^ state_) == 0 ){
     204        COUT(5) << "synchronisable: not updating variable " << std::endl;
     205        continue;  // this variable should only be updated
     206      }
    203207      COUT(5) << "Synchronisable: element size: " << (*i)->size << " type: " << (*i)->type << std::endl;
    204208      switch((*i)->type){
Note: See TracChangeset for help on using the changeset viewer.