Changeset 6981 in orxonox.OLD for trunk/src/story_entities/game_world_data.cc
- Timestamp:
- Feb 2, 2006, 2:45:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r6863 r6981 247 247 // erease everything that is left. 248 248 // delete PNode::getNullParent(); // not needed as this is also done in the next step (and also much cleaner) 249 249 const std::list<BaseObject*>* nodeList; 250 250 //secondary cleanup of PNodes; 251 const std::list<BaseObject*>*nodeList = ClassList::getList(CL_PARENT_NODE);251 nodeList = ClassList::getList(CL_PARENT_NODE); 252 252 if (nodeList != NULL) 253 253 while (!nodeList->empty()) 254 254 delete nodeList->front(); 255 256 255 /* remove the player object */ 257 256 if( this->localPlayer) 258 257 delete this->localPlayer; 258 259 // nodeList = ClassList::getList(CL_GRAPHICS_EFFECT); 260 // if (nodeList != NULL) 261 // while (!nodeList->empty()) 262 // delete nodeList->front(); 263 // 264 // nodeList = ClassList::getList(CL_ELEMENT_2D); 265 // if (nodeList != NULL) 266 // while (!nodeList->empty()) 267 // delete nodeList->front(); 268 269 270 259 271 260 272 // unload the resources !!
Note: See TracChangeset
for help on using the changeset viewer.