Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2006, 5:32:42 PM (18 years ago)
Author:
patrick
Message:

cr: collision reactance introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/world_entities/world_entity.cc

    r7957 r7958  
    256256  this->collisionHandles[type] = CREngine::getInstance()->subscribeReaction(this, type);
    257257
     258  // add the target filter
    258259  va_list itemlist;
    259260  va_start (itemlist, target);
     
    261262    this->collisionHandles[type]->addTarget(va_arg(itemlist, long));
    262263  va_end(itemlist);
     264
     265  // now there is at least one collision reaction subsribed
     266  this->bReactive = true;
    263267}
    264268
     
    275279  CREngine::getInstance()->unsubscribeReaction(this->collisionHandles[type]);
    276280  this->collisionHandles[type] = NULL;
     281
     282  //
    277283}
    278284
     
    285291  for( int i = 0; i < CREngine::CR_NUMBER; i++)
    286292    this->unsubscribeReaction((CREngine::CRType)i);
     293
     294  this->bReactive = false;
    287295}
    288296
Note: See TracChangeset for help on using the changeset viewer.