diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-12 04:50:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-12 04:50:40 +0400 |
commit | 502ddd312879316c13f66d84c4ffe0927df53a06 (patch) | |
tree | 51a18bef238f47e385d909c591e98d2023086854 /source/gameengine/Physics/Bullet | |
parent | 742c1cb3284fed8a9fdef1cb899a3eaaf896cd41 (diff) |
code cleanup: warnings and style.
Diffstat (limited to 'source/gameengine/Physics/Bullet')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp index e92f7bd1268..e01530f2b11 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp @@ -1758,16 +1758,17 @@ struct OcclusionBuffer 6,5,1,2, 7,6,2,3, 5,4,0,1}; - for (unsigned int i=0;i<(sizeof(d)/sizeof(d[0]));) - { - const btVector4 p[] = {x[d[i++]], - x[d[i++]], - x[d[i++]], - x[d[i++]]}; - if (clipDraw<4,QueryOCL>(p,1.f,0.f)) - return(true); + for (unsigned int i = 0; i < (sizeof(d) / sizeof(d[0]));) { + const btVector4 p[] = {x[d[i + 0]], + x[d[i + 1]], + x[d[i + 2]], + x[d[i + 3]]}; + i += 4; + if (clipDraw<4, QueryOCL>(p, 1.0f, 0.0f)) { + return true; + } } - return(false); + return false; } }; |