From 7c5c078341d43492c34e31814e472c4e62b73e16 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 19 Jan 2013 23:09:29 +0000 Subject: Corrected an error where the weapon cone was doubled. --- src/game/base/ship.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/base/ship.cc') diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index f12700d..4a77706 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -941,7 +941,7 @@ void Ship::frame(const unsigned long elapsed) // fire a projectile if the angle between the aim direction and the slot's forward direction is small enough // we only need half the cone angle for the cosine calculation - float conecos = cosf(slot->cone()); + float conecos = cosf(slot->cone() * 0.5f); if (cosa >= conecos) { // aim -- cgit v1.2.3