Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9878 in orxonox.OLD


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

runs better on windows

Location:
trunk/src/lib
Files:
4 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;
  • trunk/src/lib/script_engine/script_class.cc

    r9869 r9878  
    2828{
    2929  assert(scriptMethods != NULL);
    30   this->registerObject(this, ScriptClass::_objectList);
     30  //  this->registerObject(this, ScriptClass::_objectList);
    3131
    3232  this->_classID = classID;
  • trunk/src/lib/shell/shell_command.cc

    r9869 r9878  
    3939  ShellCommand::ShellCommand(const std::string& commandName, const std::string& className, Executor<const SubString>* executor)
    4040  {
    41     this->registerObject(this, ShellCommand::_objectList);
     41    //    this->registerObject(this, ShellCommand::_objectList);
    4242    PRINTF(4)("create shellcommand '%s' for class '%s'\n", commandName.c_str(), className.c_str());
    4343    this->setName(commandName);
  • trunk/src/lib/shell/shell_command_class.cc

    r9869 r9878  
    3838      : _className(className)
    3939  {
    40     this->registerObject(this, ShellCommandClass::_objectList);
     40    //    this->registerObject(this, ShellCommandClass::_objectList);
    4141    this->setName(className);
    4242
Note: See TracChangeset for help on using the changeset viewer.