From 5b6e0a07149b148b0efa327435345f5860def895 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 1 Dec 2012 22:23:48 +0000 Subject: Documentation update. --- src/game/base/ship.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(other); if (projectile->state() != core::Entity::Destroyed) { ship_armor -= projectile->damage(); -- cgit v1.2.3