Changeset 6085 in orxonox.OLD for branches/network/src/story_entities
- Timestamp:
- Dec 13, 2005, 11:52:02 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/network_world.cc
r6069 r6085 325 325 if( created != NULL ) 326 326 { 327 if(created->isA(CL_ WORLD_ENTITY))327 if(created->isA(CL_SPAWNING_POINT)) 328 328 this->spawn(dynamic_cast<WorldEntity*>(created)); 329 329 printf("Created a Spawning Point %s: %s\n", created->getClassName(), created->getName()); 330 330 } 331 331 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 343 333 element = element->NextSiblingElement(); 344 334 glmis->step(); //! @todo temporary
Note: See TracChangeset
for help on using the changeset viewer.