From 5fff70c38cdcac94480a786141b1a86b8a215ace Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 19 Jan 2013 21:41:27 +0000 Subject: Convert slot cone angle to radians. --- src/core/slot.cc | 2 +- src/core/slot.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') 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()); } diff --git a/src/core/slot.h b/src/core/slot.h index 596244b..5466de8 100644 --- a/src/core/slot.h +++ b/src/core/slot.h @@ -153,7 +153,7 @@ public: void set_item(Item *item); /** - * @brief set slot fire cone, in degrees + * @brief set slot fire cone, in radians * */ inline void set_cone(const float cone) { -- cgit v1.2.3