Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5876 in orxonox.OLD for branches/spaceshipcontrol/src


Ignore:
Timestamp:
Dec 2, 2005, 4:09:43 PM (19 years ago)
Author:
bensch
Message:

controll: some typos

Location:
branches/spaceshipcontrol/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/playable.cc

    r5875 r5876  
    4444  /*EventHandler*/
    4545  EventHandler* evh = EventHandler::getInstance();
    46   for (int i = 0 ; i < events.size(); i++)
     46  std::list<Event*>::iterator ev;
     47  for (ev = this->events.begin(); ev != events.end(); ev++)
    4748  {
    48     if (!evh->isSubscribed(ES_GAME, i))
    49       evh->subscribe(player, ES_GAME, i);
     49    if (!evh->isSubscribed(ES_GAME, (*ev)->type))
     50      evh->subscribe(player, ES_GAME, (*ev)->type);
    5051  }
    5152
  • branches/spaceshipcontrol/src/world_entities/playable.h

    r5875 r5876  
    99#include "world_entity.h"
    1010#include "event.h"
    11 #include <list.h>
     11#include <list>
    1212
    1313class Weapon;
Note: See TracChangeset for help on using the changeset viewer.