Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9133 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 4, 2006, 2:44:44 PM (18 years ago)
Author:
rennerc
Message:

sync spawningpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/spawning_point.cc

    r9008 r9133  
    5757 
    5858  MessageManager::getInstance()->registerMessageHandler( MSGID_RESPAWN, respawnMessageHandler, NULL );
     59 
     60  this->setSynchronized( true );
    5961}
    6062
     
    194196  assert( Converter::byteArrayToInt( data+INTSIZE, &uniqueId ) == INTSIZE );
    195197 
     198  PRINTF(0)("SPAWNMESSAGE %d\n", uniqueId);
     199 
    196200  SpawningPoint * sp = NULL;
    197201  Playable      * playable = NULL;
     
    203207    for ( std::list<BaseObject*>::const_iterator it = list->begin(); it != list->end(); it++ )
    204208    {
    205       if ( dynamic_cast<SpawningPoint*>(*it)->getUniqueID() == uniqueId )
     209      PRINTF(0)("%d:%d\n", dynamic_cast<SpawningPoint*>(*it)->getUniqueID(), spUniqueId);
     210      if ( dynamic_cast<SpawningPoint*>(*it)->getUniqueID() == spUniqueId )
    206211      {
    207212        sp = dynamic_cast<SpawningPoint*>(*it);
     
    213218  if ( !sp )
    214219  {
    215     PRINTF(2)("could not find spawning point\n");
     220    PRINTF(0)("could not find spawning point\n");
    216221    return false;
    217222  }
     
    233238  if ( !playable )
    234239  {
    235     PRINTF(2)("could not find playable\n");
     240    PRINTF(0)("could not find playable\n");
    236241    return false;
    237242  }
Note: See TracChangeset for help on using the changeset viewer.