# include <config.h>
#endif
-#include <simgear/props/condition.hxx>
#include "HUD.hxx"
Item(hud, n, x, y),
_active_condition(0),
_diameter(n->getNode("diameter-input", false)),
- _bullet_size(_w / 3.0),
- _inner_radius(_w)
+ _bullet_size(_w / 6.0),
+ _inner_radius(_w / 2.0)
{
const SGPropertyNode *node = n->getNode("active-condition");
if (node)
bool active = _active_condition ? _active_condition->test() : true;
float diameter = _diameter.isValid() ? _diameter.getFloatValue() : 2.0f; // outer circle
- Point centroid = get_centroid();
- float x = centroid.x;
- float y = centroid.y;
+ float x = _center_x;
+ float y = _center_y;
if (active) { // stadiametric (4.2.4.4)
draw_bullet(x, y, _bullet_size);