- Timestamp:
- Mar 31, 2009, 8:05:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/bullet/BulletCollision/BroadphaseCollision/btBroadphaseProxy.h
r2662 r2882 70 70 71 71 SOFTBODY_SHAPE_PROXYTYPE, 72 72 HFFLUID_SHAPE_PROXYTYPE, 73 HFFLUID_BUOYANT_CONVEX_SHAPE_PROXYTYPE, 73 74 INVALID_SHAPE_PROXYTYPE, 74 75 … … 188 189 189 190 //keep them sorted, so the std::set operations work 190 if ( &proxy0 < &proxy1)191 if (proxy0.m_uniqueId < proxy1.m_uniqueId) 191 192 { 192 193 m_pProxy0 = &proxy0; … … 229 230 bool operator() ( const btBroadphasePair& a, const btBroadphasePair& b ) 230 231 { 231 return a.m_pProxy0 > b.m_pProxy0 || 232 (a.m_pProxy0 == b.m_pProxy0 && a.m_pProxy1 > b.m_pProxy1) || 232 const int uidA0 = a.m_pProxy0 ? a.m_pProxy0->m_uniqueId : -1; 233 const int uidB0 = b.m_pProxy0 ? b.m_pProxy0->m_uniqueId : -1; 234 const int uidA1 = a.m_pProxy1 ? a.m_pProxy1->m_uniqueId : -1; 235 const int uidB1 = b.m_pProxy1 ? b.m_pProxy1->m_uniqueId : -1; 236 237 return uidA0 > uidB0 || 238 (a.m_pProxy0 == b.m_pProxy0 && uidA1 > uidB1) || 233 239 (a.m_pProxy0 == b.m_pProxy0 && a.m_pProxy1 == b.m_pProxy1 && a.m_algorithm > b.m_algorithm); 234 240 }
Note: See TracChangeset
for help on using the changeset viewer.