centre = HUD_Shift(centre);
ringsize = HUD_Scale(ringsize);
- float co = cos(f * 2 * M_PI);
- float si = sin(f * 2 * M_PI);
- float q = fabs(co) + fabs(si);
- co /= q;
- si /= q;
-
if(f >= 1)
{
// draw full rectangle
R_EndPolygon();
return; // Complete rectangle, nothing more needed.
}
- else if(f > 0.75)
+
+ float co = cos(f * 2 * M_PI);
+ float si = sin(f * 2 * M_PI);
+ float q = fabs(co) + fabs(si);
+ co /= q;
+ si /= q;
+
+ if(f > 0.75)
{
// draw upper half in full
R_BeginPolygon(pic, drawflag, true);