Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2005, 2:15:49 PM (18 years ago)
Author:
rennerc
Message:

synchronizeable: added macros to help write/read data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_game_manager.cc

    r6273 r6275  
    236236    }
    237237
     238
    238239    if ( b->isA(CL_SYNCHRONIZEABLE) )
    239240    {
     
    372373  while ( it != e )
    373374  {
    374     if ( (*it)->getRealClassID() != CL_NETWORK_GAME_MANAGER && (*it)->getRealClassID() != CL_HANDSHAKE )
    375     {
    376 
    377       if ( !writeToClientBuffer( outBuffer[userID], (*it)->getRealClassID() ) )
     375    if ( (*it)->getLeafID() != CL_NETWORK_GAME_MANAGER && (*it)->getLeafID() != CL_HANDSHAKE )
     376    {
     377
     378      if ( !writeToClientBuffer( outBuffer[userID], (int)((*it)->getLeafID()) ) )
    378379        return;
    379380
     
    425426    PRINTF(1)("Could not fabricate Object with classID %x\n", classID);
    426427    return;
    427   }
    428   else
    429   {
    430     //PRINTF(0)("Fabricated entity: %s\n", b->getClassName());
    431428  }
    432429
     
    439436    if ( !isServer() )
    440437      s->setIsOutOfSync( true );
     438    PRINTF(0)("Fabricated %s with id %d\n", s->getClassName(), s->getUniqueID());
    441439  }
    442440  else
Note: See TracChangeset for help on using the changeset viewer.