Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9878 in orxonox.OLD for trunk/src/lib/event


Ignore:
Timestamp:
Oct 3, 2006, 3:49:52 PM (18 years ago)
Author:
bensch
Message:

runs better on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_handler.cc

    r9869 r9878  
    4444
    4545  /* now initialize them all to zero */
    46   for (unsigned int i = 0; i < ES_NUMBER; i++)
     46  for (unsigned int i = 0; i < ESTATE_NUMBER; i++)
    4747    this->bUNICODE[i] = false;
    4848  this->grabEvents(false);
     
    6868  bool forgotToUnsubscribe = false;
    6969
    70   for(int i = 0; i < ES_NUMBER; ++i)
     70  for(int i = 0; i < ESTATE_NUMBER; ++i)
    7171  {
    7272    for(int j = 0; j < EV_NUMBER; ++j)
     
    203203  if( state == ES_ALL )
    204204  {
    205     for(unsigned int i = 0; i < ES_NUMBER; i++)
     205    for(unsigned int i = 0; i < ESTATE_NUMBER; i++)
    206206      if (!this->findListener( NULL, (elState)i, eventType, el))
    207207        this->listeners[i][eventType].push_back(el);
     
    235235  PRINTF(4)("Unsubscribing event type nr: %i\n", eventType);
    236236  if (state == ES_ALL)
    237     for (unsigned int i = 0; i < ES_NUMBER; i++)
     237    for (unsigned int i = 0; i < ESTATE_NUMBER; i++)
    238238    {
    239239      std::vector<EventListener*>::iterator listener;
Note: See TracChangeset for help on using the changeset viewer.