Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-01-19 23:09:29 +0000
committerStijn Buys <ingar@osirion.org>2013-01-19 23:09:29 +0000
commit7c5c078341d43492c34e31814e472c4e62b73e16 (patch)
tree7ba23c4cf19a91c6440a88e2d04227a07d59f855
parent51cc17b67fa8813ad8cedae0f2584d25deaa38ae (diff)
Corrected an error where the weapon cone was doubled.
-rw-r--r--src/game/base/ship.cc2
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