Changeset 2822 in orxonox.OLD for orxonox/trunk/src/world.cc
- Timestamp:
- Nov 12, 2004, 1:33:25 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.cc
r2819 r2822 36 36 this->worldName = name; 37 37 this->debugWorldNr = -1; 38 this->entities = new List();38 this->entities = new tList<WorldEntity>(); 39 39 } 40 40 … … 43 43 this->debugWorldNr = worldID; 44 44 this->worldName = NULL; 45 this->entities = new List();45 this->entities = new tList<WorldEntity>(); 46 46 } 47 47 … … 134 134 this->spawn(env, plc); 135 135 136 this->entities->debug();137 136 break; 138 137 } … … 331 330 332 331 // draw entities 333 List *l;334 332 WorldEntity* entity; 335 333 336 l = entities; 337 entity = l->enumerate(); 334 entity = this->entities->enumerate(); 338 335 while( entity != NULL ) 339 336 { 340 entity->draw();341 entity = l->nextElement();337 if( entity->bDraw ) entity->draw(); 338 entity = this->entities->nextElement(); 342 339 } 343 340 … … 502 499 display(); 503 500 504 for(int i = 0; i < 1000000; i++){}501 //for(int i = 0; i < 1000000; i++){} 505 502 506 503 }
Note: See TracChangeset
for help on using the changeset viewer.