Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2822 in orxonox.OLD for orxonox/trunk/src/world.cc


Ignore:
Timestamp:
Nov 12, 2004, 1:33:25 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk/src: changed list to template again, will add an iterator soon. fixed a graphics bug, that was realy painful to track.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world.cc

    r2819 r2822  
    3636  this->worldName = name;
    3737  this->debugWorldNr = -1;
    38   this->entities = new List();
     38  this->entities = new tList<WorldEntity>();
    3939}
    4040
     
    4343  this->debugWorldNr = worldID;
    4444  this->worldName = NULL;
    45   this->entities = new List();
     45  this->entities = new tList<WorldEntity>();
    4646}
    4747
     
    134134            this->spawn(env, plc);
    135135
    136             this->entities->debug();
    137136            break;
    138137          }
     
    331330 
    332331  // draw entities
    333   List *l;
    334332  WorldEntity* entity;
    335333 
    336   l = entities;
    337   entity = l->enumerate();
     334  entity = this->entities->enumerate();
    338335  while( entity != NULL )
    339336    {
    340       entity->draw();
    341       entity = l->nextElement();
     337      if( entity->bDraw ) entity->draw();
     338      entity = this->entities->nextElement();
    342339    }
    343340 
     
    502499      display();
    503500 
    504       for(int i = 0; i < 1000000; i++){}
     501      //for(int i = 0; i < 1000000; i++){}
    505502
    506503    }
Note: See TracChangeset for help on using the changeset viewer.