Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7793 in orxonox.OLD for branches


Ignore:
Timestamp:
May 24, 2006, 12:22:20 PM (19 years ago)
Author:
rennerc
Message:

fixed da bug

Location:
branches/network/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/coord/p_node.cc

    r7446 r7793  
    10931093  if ( std::find( id.begin(), id.end(), relCoordinate_handle ) != id.end() )
    10941094  {
     1095    if ( getLeafClassID() == CL_SPACE_SHIP )
     1096    {
     1097      PRINTF(0)("SET COOR\n");
     1098      relCoordinate_write.debug();
     1099    }
    10951100    setRelCoor( relCoordinate_write );
    10961101  }
     
    10981103  if ( std::find( id.begin(), id.end(), relDirection_handle ) != id.end() )
    10991104  {
     1105    if ( getLeafClassID() == CL_SPACE_SHIP )
     1106    {
     1107      PRINTF(0)("SET DIR\n");
     1108      relDirection_write.debug();
     1109    }
    11001110    setRelDir( relDirection_write );
    11011111  }
  • branches/network/src/lib/network/synchronizeable.cc

    r7767 r7793  
    136136  while ( it != sentStates[userId].end() && (*it)->stateId != fromStateId )
    137137    it++;
     138 
     139//  if ( getLeafClassID() == CL_SPACE_SHIP )
     140//  {
     141//    PRINTF(0)("getStateDiff:SpaceShip from: %d stateId: %d\n", (it == sentStates[userId].end())?-1:fromStateId, stateId);
     142//  }
    138143
    139144  if ( it == sentStates[userId].end() )
     
    257262  while ( it != recvStates[userId].end() && (*it)->stateId != fromStateId )
    258263    it++;
     264 
     265//  if ( getLeafClassID() == CL_SPACE_SHIP )
     266//  {
     267//    PRINTF(0)("setStateDiff:SpaceShip from: %d stateId: %d\n", (it == recvStates[userId].end())?-1:fromStateId, stateId);
     268//  }
    259269
    260270  if ( it == recvStates[userId].end() )
  • branches/network/src/lib/network/synchronizeable_var/synchronizeable_vector.cc

    r7614 r7793  
    7979  int res;
    8080  int n = 0;
     81 
     82  Vector oldVec = *vPtrOut;
    8183
    8284  res = Converter::byteArrayToFloat( buf + n, &x );
     
    9395
    9496  *vPtrOut = Vector( x, y, z );
     97 
     98  setHasChanged( !(*vPtrOut == oldVec) );
    9599
    96100  assert( n == 3*FLOATSIZE );
Note: See TracChangeset for help on using the changeset viewer.