Changeset 6771 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jan 26, 2006, 2:39:31 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r6634 r6771 33 33 #include "test_entity.h" 34 34 #include "terrain.h" 35 #include "skybox.h" 35 36 #include "md2Model.h" 36 37 #include "world_entities/projectiles/projectile.h" … … 59 60 #include "ogg_player.h" 60 61 #include "shader.h" 61 62 62 63 63 … … 207 207 //todo do this more elegant 208 208 if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) 209 { 209 210 this->sky = dynamic_cast<WorldEntity*>(created); 211 State::setSkyBox(dynamic_cast<SkyBox*>(this->sky)); 212 } 210 213 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) 211 214 { … … 263 266 delete this->objectManager; 264 267 } 268 if(State::getSkyBox()) 269 State::setSkyBox(NULL); 265 270 } 266 271
Note: See TracChangeset
for help on using the changeset viewer.