Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/physics.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/physics.cc b/src/core/physics.cc
index b1c8e0f..69c21f2 100644
--- a/src/core/physics.cc
+++ b/src/core/physics.cc
@@ -39,11 +39,11 @@ bool bullet_contact_added_callback(btManifoldPoint &cp, const btCollisionObjectW
// FIXME there should probably be an entity flag indiciating wether or not it has a collision callback
- if ((entity0->type() == Entity::Dynamic) || (entity0->type() == Entity::Controlable)) {
+ if ((entity0->type() == Entity::Dynamic) || (entity0->type() == Entity::Controlable) || (entity0->type() == Entity::Projectile)) {
static_cast<EntityDynamic *>(entity0)->collision(entity1);
}
- if ((entity1->type() == Entity::Dynamic) || (entity1->type() == Entity::Controlable)) {
+ if ((entity1->type() == Entity::Dynamic) || (entity1->type() == Entity::Controlable) || (entity1->type() == Entity::Projectile)) {
static_cast<EntityDynamic *>(entity1)->collision(entity0);
}