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 21:41:27 +0000
committerStijn Buys <ingar@osirion.org>2013-01-19 21:41:27 +0000
commit5fff70c38cdcac94480a786141b1a86b8a215ace (patch)
tree9679ae2d962c4ac5a5e7271738e502e5a4de665f /src/core/slot.cc
parent8b77c470ee2524892a31c4c29a1dc67c9c2a1e23 (diff)
Convert slot cone angle to radians.
Diffstat (limited to 'src/core/slot.cc')
-rw-r--r--src/core/slot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/slot.cc b/src/core/slot.cc
index 58ab155..58bb51c 100644
--- a/src/core/slot.cc
+++ b/src/core/slot.cc
@@ -47,7 +47,7 @@ void Slot::load(const model::Weapon * weapon_tag)
{
if (weapon_tag) {
set_type(weapon_tag->type());
- set_cone(weapon_tag->cone());
+ set_cone(weapon_tag->cone() * M_PI / 180.0f);
set_location(weapon_tag->location());
set_axis(weapon_tag->axis());
}