Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6085 in orxonox.OLD for branches/network/src/story_entities


Ignore:
Timestamp:
Dec 13, 2005, 11:52:02 AM (19 years ago)
Author:
patrick
Message:

network: worked on the network_world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/network_world.cc

    r6069 r6085  
    325325      if( created != NULL )
    326326      {
    327         if(created->isA(CL_WORLD_ENTITY))
     327        if(created->isA(CL_SPAWNING_POINT))
    328328          this->spawn(dynamic_cast<WorldEntity*>(created));
    329329        printf("Created a Spawning Point %s: %s\n", created->getClassName(), created->getName());
    330330      }
    331331
    332           // if we load a 'Player' we use it as localPlayer
    333 
    334 
    335           //todo do this more elegant
    336       if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox"))
    337         sky = dynamic_cast<SkyBox*>(created);
    338       if( element->Value() != NULL && !strcmp( element->Value(), "Terrain"))
    339       {
    340         terrain = dynamic_cast<Terrain*>(created);
    341         CDEngine::getInstance()->setTerrain(terrain);
    342       }
     332
    343333      element = element->NextSiblingElement();
    344334      glmis->step(); //! @todo temporary
Note: See TracChangeset for help on using the changeset viewer.