Changeset 4816 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jul 7, 2005, 4:24:58 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/event/event_handler.cc
r4783 r4816 146 146 void EventHandler::unsubscribe(EventListener* el, elState state) 147 147 { 148 if( el == NULL) 149 return; 148 150 if( state == ES_ALL) 149 151 { -
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 } -
orxonox/trunk/src/util/loading/game_loader.cc
r4739 r4816 49 49 \brief simple deconstructor 50 50 */ 51 GameLoader::~GameLoader () {} 51 GameLoader::~GameLoader () 52 { 53 if( this->currentCampaign) 54 delete this->currentCampaign; 55 this->currentCampaign = NULL; 56 } 52 57 53 58 … … 97 102 delete campaignName; 98 103 } 99 World* world0 = new World(DEBUG_WORLD_0);100 world0->setNextStoryID(WORLD_ID_GAMEEND);101 this->currentCampaign->addEntity(world0, WORLD_ID_2);104 // World* world0 = new World(DEBUG_WORLD_0); 105 // world0->setNextStoryID(WORLD_ID_GAMEEND); 106 // this->currentCampaign->addEntity(world0, WORLD_ID_2); 102 107 } 103 108 … … 165 170 if(this->currentCampaign != NULL) 166 171 this->currentCampaign->stop(); 167 this->currentCampaign = NULL;168 172 } 169 173
Note: See TracChangeset
for help on using the changeset viewer.