projects
/
libbear.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6234dc8
)
optomized collisions to exclude half of the tests
author
Patrik Gornicz
<Gornicz.P@gmail.com>
Thu, 11 Dec 2008 01:09:23 +0000
(20:09 -0500)
committer
Patrik Gornicz
<Gornicz.P@gmail.com>
Thu, 11 Dec 2008 01:09:23 +0000
(20:09 -0500)
src/collisionManager.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/collisionManager.cpp
b/src/collisionManager.cpp
index
9db130e
..
5d2dff0
100644
(file)
--- a/
src/collisionManager.cpp
+++ b/
src/collisionManager.cpp
@@
-142,10
+142,10
@@
void updateEntities()
it2 != divisions[x][y].end();
it2++ )
{
- if( *it1
!
= *it2 )
- {
- applyCollision(*it1, *it2);
- }
+ if( *it1
=
= *it2 )
+ break;
+
+ applyCollision(*it1, *it2);
}
}
}