diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-19 23:09:29 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-19 23:09:29 +0000 |
commit | 7c5c078341d43492c34e31814e472c4e62b73e16 (patch) | |
tree | 7ba23c4cf19a91c6440a88e2d04227a07d59f855 | |
parent | 51cc17b67fa8813ad8cedae0f2584d25deaa38ae (diff) |
Corrected an error where the weapon cone was doubled.
-rw-r--r-- | src/game/base/ship.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |