diff options
Diffstat (limited to 'src/game/base/platform.cc')
-rw-r--r-- | src/game/base/platform.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/base/platform.cc b/src/game/base/platform.cc index 1f81591..de7f987 100644 --- a/src/game/base/platform.cc +++ b/src/game/base/platform.cc @@ -109,18 +109,14 @@ void Platform::frame(const unsigned long elapsed) continue; } - // location of the slot in world coordinates - const math::Vector3f slot_location(location() + (axis() * slot->location())); - // find a target for this slot Ship *current_enemy = 0; float current_distance = 0.0f; - const float projectile_radius = core::PROJECTILE_RADIUS; + math::Vector3f projectile_location(location() + (axis() * slot->location())); + math::Vector3f projectile_direction; math::Axis projectile_axis(axis() * slot->axis()); - const math::Vector3f projectile_location(slot_location + projectile_axis.forward() * projectile_radius); - math::Vector3f projectile_direction; math::Vector3f aim_location; // we only need half the cone angle for the cosine calculation |