diff options
Diffstat (limited to 'src/game/base/ship.cc')
-rw-r--r-- | src/game/base/ship.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index dbf8b19..9b78dfa 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -1205,10 +1205,8 @@ void Ship::frame(const unsigned long elapsed) } else if ((weapon->projectile_interval() > 0) && (slot->last_fired() + weapon->projectile_interval() <= core::server()->timestamp())) { // aim - const float projectile_radius = core::PROJECTILE_RADIUS; // FIXME this should be defined somewhere - math::Axis projectile_axis(axis() * slot->axis()); - math::Vector3f projectile_location(location() + axis() * slot->location() + projectile_axis.forward() * projectile_radius); + math::Vector3f projectile_location(location() + axis() * slot->location()); math::Vector3f projectile_direction(target_aim - projectile_location); projectile_direction.normalize(); float cosa = math::dotproduct(projectile_direction, projectile_axis.forward()); |