Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 4:55:19 PM (17 years ago)
Author:
patrick
Message:

removed most of the compiler bugs. more to come

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/lib/collision_reaction/collision_filter.cc

    r9980 r9988  
    2121#include "collision.h"
    2222#include "collision_event.h"
    23 #include "collision_reaction.h"
    2423
    25 #include "cr_object_damage.h"
    26 #include "cr_physics_ground_walk.h"
    27 #include "cr_physics_full_walk.h"
    2824
    2925#include "debug.h"
     
    112108    if( likely(this->validCRType( type)))
    113109      this->_filters[type].clear();
     110
     111    for( int i = 0; i < CREngine::CR_NUMBER; i++)
     112    {
     113      if( this->_filters[i].size() > 0)
     114      {
     115        this->_bReactive = true;
     116        break;
     117      }
     118    }
     119
    114120  }
    115121
     
    121127    for(int i = 0; i < CREngine::CR_NUMBER; i++)
    122128      this->_filters[i].clear();
     129
     130    this->_bReactive = false;
    123131  }
    124132
     
    135143  {
    136144    // if there are no installed criterions just ommit and
    137     if( this->bReactive())
     145    if( this->isReactive())
    138146      return false;
    139147
     
    142150    {
    143151      TargetIterator it = this->_filters[i].begin();
    144       for(; it != this->_filters[i].end(); i++ )
    145         if( unlikely(entity.isA(*it)))
    146           return true;
     152
     153
     154//       for(; it != this->_filters[i].end(); i++ )
     155//         if( unlikely(entity.isA(*it) ) )
     156//           return true;
    147157    }
    148158
     
    161171  {
    162172    // if there are no installed criterions just omit and return
    163     if( !this->bReactive())
     173    if( !this->isReactive())
    164174      return false;
    165175
Note: See TracChangeset for help on using the changeset viewer.