Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/ship.cc')
-rw-r--r--src/game/base/ship.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc
index f874fa3..fd7b1b8 100644
--- a/src/game/base/ship.cc
+++ b/src/game/base/ship.cc
@@ -534,6 +534,8 @@ void Ship::collision(core::Entity *other)
} else if (other->type() == core::Entity::Projectile) {
// hit by projectile
+
+ // TODO don't hit self
core::EntityProjectile *projectile = static_cast<core::EntityProjectile *>(other);
if (projectile->state() != core::Entity::Destroyed) {
ship_armor -= projectile->damage();