Changeset 9879 in orxonox.OLD for trunk/src/lib/event
- Timestamp:
- Oct 3, 2006, 4:16:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r9878 r9879 257 257 void EventHandler::unsubscribe(EventListener* el, elState state) 258 258 { 259 assert( el != NULL && state < ES _NUMBER);259 assert( el != NULL && state < ESTATE_NUMBER && state != ES_NULL); 260 260 if( state == ES_ALL) 261 261 { 262 for(unsigned int i = 0; i < ES _NUMBER; i++)262 for(unsigned int i = 0; i < ESTATE_NUMBER; i++) 263 263 { 264 264 for(unsigned int j = 0; j < EV_NUMBER; j++) … … 302 302 if( state == ES_ALL) 303 303 { 304 for(int i = 0; i < ES _NUMBER; ++i)304 for(int i = 0; i < ESTATE_NUMBER; ++i) 305 305 { 306 306 for(int j = 0; j < EV_NUMBER; ++j) … … 525 525 const std::string& EventHandler::ELStateToString(elState state) 526 526 { 527 if (state < ES _NUMBER)527 if (state < ESTATE_NUMBER) 528 528 return EventHandler::stateNames[state]; 529 529 else … … 537 537 elState EventHandler::StringToELState(const std::string& stateName) 538 538 { 539 for (unsigned int i = 0 ; i < ES _NUMBER; i++)539 for (unsigned int i = 0 ; i < ESTATE_NUMBER; i++) 540 540 if (stateName == EventHandler::stateNames[i]) 541 541 return (elState)i; … … 562 562 PRINT(0)(" EventHandle Debug Information \n"); 563 563 PRINT(0)("===============================\n"); 564 for(int i = 0; i < ES _NUMBER; ++i)564 for(int i = 0; i < ESTATE_NUMBER; ++i) 565 565 { 566 566 for(int j = 0; j < EV_NUMBER; ++j)
Note: See TracChangeset
for help on using the changeset viewer.