Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7694 in orxonox.OLD


Ignore:
Timestamp:
May 18, 2006, 3:58:15 PM (19 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

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

    r7693 r7694  
    934934  Converter::byteArrayToInt( data, &uniqueId );
    935935 
     936  SynchronizeableList::const_iterator it = NetworkGameManager::getInstance()->networkStream->getSyncBegin();
     937
     938  Playable *p = NULL;
     939  Synchronizeable *s = NULL;
     940
     941  for ( ; it !=NetworkGameManager::getInstance()->networkStream->getSyncEnd(); it++ )
     942  {
     943    if ( (*it)->getUniqueID()==uniqueId )
     944    {
     945      if ( (*it)->isA( CL_PLAYABLE ) )
     946      {
     947        break;
     948      }
     949    }
     950  }
     951 
     952  if ( it !=NetworkGameManager::getInstance()->networkStream->getSyncEnd() )
     953    return false;
     954 
    936955  NetworkGameManager::getInstance()->doYouAre( uniqueId );
     956 
     957  return true;
    937958}
    938959
Note: See TracChangeset for help on using the changeset viewer.