Changeset 4816 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Jul 7, 2005, 4:24:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/campaign.cc
r4600 r4816 57 57 } 58 58 59 Campaign::~Campaign () {} 59 Campaign::~Campaign () 60 {} 60 61 61 62 … … 133 134 se->destroy(); 134 135 136 this->entities->remove(se); 135 137 delete se; 136 138 … … 146 148 return errorCode; 147 149 } 148 149 } 150 } 151 152 /* clean up all world that have not been loaded and therefore are still in the world list - 153 this probably does not belong into the start function. remove this later 154 */ 155 tIterator<StoryEntity>* it = this->entities->getIterator(); 156 se = it->nextElement(); 157 while( se != NULL) 158 { 159 delete se; 160 se = it->nextElement(); 161 } 162 delete this->entities; 150 163 } 151 164 … … 171 184 { 172 185 this->currentEntity->stop(); 173 //delete this->currentEntity;174 //this->currentEntity = NULL;175 186 } 176 187 } … … 228 239 { 229 240 printf("Campaign:nextLevel()\n"); 230 //int nextID = this->currentEntity->getNextStoryID();231 //this->stop();232 //this->start(nextID);233 241 this->currentEntity->stop(); 234 242 }
Note: See TracChangeset
for help on using the changeset viewer.