Commit 9148a60c authored by Oliver Bock's avatar Oliver Bock

Use exisiting variable

parent 0587db32
......@@ -437,7 +437,7 @@ void PulsarAnimationWidget::paintGL()
// Pinnacle of cone is shared vertex for fan, moved up z-axis
// to produce a cone instead of a circle
glColor3f(1.0f, 1.0f, 0.0f);
glVertex3f(0.0f, 0.0f, 3.0f);
glVertex3f(0.0f, 0.0f, m_pulsarBeamLength);
// Loop around in a circle and specify even points along the circle
// as the vertices of the triangle fan (32 sections)
......@@ -457,7 +457,7 @@ void PulsarAnimationWidget::paintGL()
glBegin(GL_TRIANGLE_FAN);
{
glColor3f(0.66f, 0.66f, 0.0f);
glVertex3f(0.0f, 0.0f, 3.0f);
glVertex3f(0.0f, 0.0f, m_pulsarBeamLength);
for(angle = 0.0f; angle < (2.0f*PI); angle += (PI/32.0f)) {
x = m_pulsarBeamInnerRadius * sin(angle);
y = m_pulsarBeamInnerRadius * cos(angle);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment