rem: else if (rad2 <= (RADIUS + 2) * (RADIUS + 2))  p = frame_mapRGBA (ShieldFrame, 0, 0, 0, 255);
context: static void CreateShieldMask (void){	DWORD rad2, clear, *rgba, *p_rgba, p;	UBYTE red_nt;	int x, y;	FRAME ShieldFrame;	DWORD aa_delta, aa_delta2;	ShieldFrame = pSolarSysState->Orbit.ShieldFrame;	rgba = pSolarSysState->Orbit.ScratchArray;	p_rgba = rgba;	// This is a non-transparent red for the halo	red_nt = 180;	//  This is 100% transparent.	clear = frame_mapRGBA (ShieldFrame, 0, 0, 0, 0);	aa_delta = SHIELD_RADIUS_2 - (SHIELD_RADIUS - 1) * (SHIELD_RADIUS - 1);	aa_delta2 = (RADIUS + 3) * (RADIUS + 3) - (RADIUS + 2)*(RADIUS + 2);	for (y = -SHIELD_RADIUS; y <= SHIELD_RADIUS; y++)	{		for (x = -SHIELD_RADIUS; x <= SHIELD_RADIUS; x++)		{			rad2 = x * x + y * y;			if (rad2 <= SHIELD_RADIUS_2)			{				//Inside the halo				if (rad2 <= RADIUS_2)					// The mask for the planet					p=clear;				else if (rad2 <= (RADIUS + 2) * (RADIUS + 2))					// The space between the halo and the planet					p = frame_mapRGBA (ShieldFrame, 0, 0, 0, 255);				else				{					// The halo itself					UBYTE red = red_nt;					if (rad2 > (SHIELD_RADIUS - 1) * (SHIELD_RADIUS - 1))					{						DWORD r;						r = rad2 - (SHIELD_RADIUS - 1) * (SHIELD_RADIUS - 1);						red = red_nt - (UBYTE)(red_nt * r / aa_delta);					} 					else if (rad2 < (RADIUS + 3) * (RADIUS + 3))					{						DWORD r;						r = rad2 - (RADIUS + 2) * (RADIUS + 2);						red = (UBYTE)(red_nt * r / aa_delta2);					}					p = frame_mapRGBA (ShieldFrame, red, 0, 0, 255);				}			} 			else				p = clear;			*p_rgba++ = p;		}	}	process_rgb_bmp (ShieldFrame, rgba, SHIELD_DIAM, SHIELD_DIAM);	SetFrameHot (ShieldFrame, MAKE_HOT_SPOT (SHIELD_RADIUS + 1,SHIELD_RADIUS + 1));	{		// Applythe shield to the topo data		UBYTE a;		int blit_type;		FRAME tintFrame = pSolarSysState->Orbit.TintFrame;#ifdef USE_ALPHA_SHIELD		a = 200;		blit_type = 0;#else		//additive_blit		a = 255;		blit_type = -1;#endif		p = frame_mapRGBA (tintFrame, 255, 0, 0, a);		fill_frame_rgb (tintFrame, p, 0, 0, 0, 0);		arith_frame_blit (tintFrame, NULL, pSolarSysState->TopoFrame, NULL, 0, blit_type);	}}