Changeset 4830 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Jul 11, 2005, 5:43:37 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4829 r4830 186 186 187 187 delete WorldInterface::getInstance(); 188 delete this->nullParent;188 delete NullParent::getInstance(); 189 189 delete this->entities; 190 State::setWorldEntityList(NULL); 191 192 190 193 delete LightManager::getInstance(); 191 194 delete TrackManager::getInstance(); … … 194 197 TextEngine::getInstance()->flush(); 195 198 SoundEngine::getInstance()->flushAllBuffers(); 199 SoundEngine::getInstance()->flushAllSources(); 196 200 197 201 delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence. … … 203 207 204 208 ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL); 209 210 211 212 crosshair=NULL; 205 213 } 206 214 … … 238 246 LoadParam<World>(root, "path", this, &World::setPath) 239 247 .describe("The Filename of this World (relative from the data-dir)"); 240 241 if (!crosshair)242 crosshair = new Crosshair();243 248 } 244 249 … … 273 278 274 279 GraphicsEngine::getInstance()->displayFPS(true); 280 281 if (!crosshair) 282 crosshair = new Crosshair(); 275 283 } 276 284 … … 849 857 glCallList (objectList); 850 858 851 ParticleEngine::getInstance()->draw(); //!< \todo should be dts like in the Trunk; 859 ParticleEngine::getInstance()->draw(); 860 861 crosshair->draw(); 852 862 853 863 TextEngine::getInstance()->draw(); 854 864 LightManager::getInstance()->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes // 855 crosshair->draw();856 865 } 857 866
Note: See TracChangeset
for help on using the changeset viewer.