Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/command_node.cc

    r3605 r3746  
    2222#include "game_loader.h"
    2323#include "world.h"
     24#include "list.h"
     25#include "orxonox.h"
     26#include "debug.h"
    2427
    2528#include <stdio.h>
     
    279282  if( this->world->command(cmd)) return;
    280283
    281   WorldEntity* entity = bound->enumerate();
     284  tIterator<WorldEntity>* iterator = bound->getIterator();
     285  WorldEntity* entity = iterator->nextElement();
    282286  while( entity != NULL)
    283287    {
    284288      entity->command (cmd); /*no absorbtion of command! strange*/
    285       entity = bound->nextElement();
    286     }
     289      entity = iterator->nextElement();
     290    }
     291  delete iterator;
    287292}
    288293
Note: See TracChangeset for help on using the changeset viewer.