Changeset 9140 in orxonox.OLD for branches/terrain/src/story_entities/game_world_data.cc
- Timestamp:
- Jul 4, 2006, 3:06:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/story_entities/game_world_data.cc
r9019 r9140 31 31 #include "player.h" 32 32 #include "camera.h" 33 #include "terrain .h"33 #include "terrain_entity.h" 34 34 #include "skybox.h" 35 35 #include "md2/md2Model.h" … … 209 209 BaseObject* created = Factory::fabricate(element); 210 210 if( created != NULL ) 211 PRINTF( 4)("Created a %s: %s\n", created->getClassName(), created->getName());211 PRINTF(2)("Created a %s: %s\n", created->getClassName(), created->getName()); 212 212 213 213 //todo do this more elegant … … 217 217 State::setSkyBox(dynamic_cast<SkyBox*>(this->sky)); 218 218 } 219 if( element->Value() == "Terrain" && created->isA(CL_TERRAIN)) 219 220 if( element->Value() == "TerrainEntity" && created->isA(CL_TERRAIN)) 220 221 { 221 this->terrain = dynamic_cast<Terrain *>(created);222 this->terrain = dynamic_cast<TerrainEntity*>(created); 222 223 CDEngine::getInstance()->setTerrain(terrain); 223 224 }
Note: See TracChangeset
for help on using the changeset viewer.