Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9231 in orxonox.OLD for branches/presentation


Ignore:
Timestamp:
Jul 5, 2006, 2:21:40 PM (18 years ago)
Author:
rennerc
Message:

dont access removed playable

File:
1 edited

Legend:

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

    r9228 r9231  
    158158      this->spawn(it->entity);
    159159     
    160       if ( SharedNetworkData::getInstance()->isGameServer() )
     160      const std::list<BaseObject*> * list = ClassList::getList( CL_PLAYABLE );
     161 
     162      bool found = false;
     163 
     164      if ( !list )
     165        return;
     166   
     167      for ( std::list<BaseObject*>::const_iterator it2 = list->begin(); it2 != list->end(); it2++ )
     168      {
     169        if ( *it2 == it->entity )
     170        {
     171          found = true;
     172          break;
     173        }
     174      }
     175 
     176      if ( found && SharedNetworkData::getInstance()->isGameServer() )
    161177        this->sendRespawnMessage( it->entity->getUniqueID() );
    162178
Note: See TracChangeset for help on using the changeset viewer.