Changeset 5876 in orxonox.OLD
- Timestamp:
- Dec 2, 2005, 4:09:43 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.cc
r5875 r5876 44 44 /*EventHandler*/ 45 45 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++) 47 48 { 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); 50 51 } 51 52 -
branches/spaceshipcontrol/src/world_entities/playable.h
r5875 r5876 9 9 #include "world_entity.h" 10 10 #include "event.h" 11 #include <list .h>11 #include <list> 12 12 13 13 class Weapon;
Note: See TracChangeset
for help on using the changeset viewer.