Changeset 3194 in orxonox.OLD for orxonox/trunk/src/world.cc
- Timestamp:
- Dec 16, 2004, 5:05:16 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.cc
r3175 r3194 75 75 this->bQuitCurrentGame = true; 76 76 this->localCamera->setWorld(NULL); 77 this->entities->clear(); 77 WorldEntity* entity = entities->enumerate(); 78 while( entity != NULL ) 79 { 80 entity->destroy(); 81 entity = entities->nextElement(); 82 } 83 this->entities->destroy(); 78 84 Orxonox::getInstance()->get_localinput()->reset(); 79 this->~World();80 85 } 81 86 … … 114 119 this->track[i] = Track( i, (i+1)%this->tracklen, &this->pathnodes[i], &this->pathnodes[(i+1)%this->tracklen]); 115 120 } 116 121 // !\todo old track-system has to be removed 122 117 123 // create a player 118 124 WorldEntity* myPlayer = new Player(); … … 154 160 this->track[i] = Track( i, (i+1)%this->tracklen, &this->pathnodes[i], &this->pathnodes[(i+1)%this->tracklen]); 155 161 } 156 162 157 163 // create a player 158 //WorldEntity* myPlayer = (WorldEntity*) this->spawn<Player>();159 164 WorldEntity* myPlayer = new Player(); 160 165 this->spawn(myPlayer); 161 this->localPlayer = myPlayer; 166 this->localPlayer = myPlayer; 162 167 163 168 // bind input … … 539 544 else 540 545 { 541 printf("fps = 1000 but 0ms!\n"); 546 printf("fps = 1000 - frame rate is adjusted\n"); 547 SDL_Delay(10); 548 dt = 10; 542 549 } 543 550
Note: See TracChangeset
for help on using the changeset viewer.