diff options
author | Stijn Buys <ingar@osirion.org> | 2012-12-01 22:23:48 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-12-01 22:23:48 +0000 |
commit | 5b6e0a07149b148b0efa327435345f5860def895 (patch) | |
tree | 5424880b6929004e21255d9e6cc26e35e92c54ea /src | |
parent | d4f69710312305fb37e77eb7c21c536da3dd7e7a (diff) |
Documentation update.
Diffstat (limited to 'src')
-rw-r--r-- | src/game/base/ship.cc | 2 |
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(); |