Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9879 in orxonox.OLD for trunk


Ignore:
Timestamp:
Oct 3, 2006, 4:16:33 PM (18 years ago)
Author:
bensch
Message:

runs somehow on Windows… but this needs millions of patches as i can see …

File:
1 edited

Legend:

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

    r9878 r9879  
    257257void EventHandler::unsubscribe(EventListener* el, elState state)
    258258{
    259   assert( el != NULL && state < ES_NUMBER);
     259  assert( el != NULL && state < ESTATE_NUMBER && state != ES_NULL);
    260260  if( state == ES_ALL)
    261261  {
    262     for(unsigned int i = 0; i < ES_NUMBER; i++)
     262    for(unsigned int i = 0; i < ESTATE_NUMBER; i++)
    263263    {
    264264      for(unsigned int j = 0; j < EV_NUMBER; j++)
     
    302302  if( state == ES_ALL)
    303303  {
    304     for(int i = 0; i < ES_NUMBER; ++i)
     304    for(int i = 0; i < ESTATE_NUMBER; ++i)
    305305    {
    306306      for(int j = 0; j < EV_NUMBER; ++j)
     
    525525const std::string& EventHandler::ELStateToString(elState state)
    526526{
    527   if (state < ES_NUMBER)
     527  if (state < ESTATE_NUMBER)
    528528    return EventHandler::stateNames[state];
    529529  else
     
    537537elState EventHandler::StringToELState(const std::string& stateName)
    538538{
    539   for (unsigned int i = 0 ; i < ES_NUMBER; i++)
     539  for (unsigned int i = 0 ; i < ESTATE_NUMBER; i++)
    540540    if (stateName == EventHandler::stateNames[i])
    541541      return (elState)i;
     
    562562  PRINT(0)(" EventHandle Debug Information \n");
    563563  PRINT(0)("===============================\n");
    564   for(int i = 0; i < ES_NUMBER; ++i)
     564  for(int i = 0; i < ESTATE_NUMBER; ++i)
    565565  {
    566566    for(int j = 0; j < EV_NUMBER; ++j)
Note: See TracChangeset for help on using the changeset viewer.