Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-12-01 22:23:48 +0000
committerStijn Buys <ingar@osirion.org>2012-12-01 22:23:48 +0000
commit5b6e0a07149b148b0efa327435345f5860def895 (patch)
tree5424880b6929004e21255d9e6cc26e35e92c54ea /src
parentd4f69710312305fb37e77eb7c21c536da3dd7e7a (diff)
Documentation update.
Diffstat (limited to 'src')
-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();