From 64e01a753b182929719e383bca2bead040991e56 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Tue, 3 Dec 2002 18:18:19 +0000 Subject: [PATCH] Slaveshield halo's inner side is now antialiased too (by wjp) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@303 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/plangen.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/planets/plangen.c b/sc2/src/sc2code/planets/plangen.c index 4412132ba..3c764b99c 100644 --- a/sc2/src/sc2code/planets/plangen.c +++ b/sc2/src/sc2code/planets/plangen.c @@ -330,9 +330,9 @@ void CreateShieldMask() if(rad2<=RADIUS_2) { // The mask for the planet p=clear; - } else if(rad2<=(RADIUS_2+4*RADIUS+4)) { + } else if (rad2<=(RADIUS+2)*(RADIUS+2)) { // The space between the halo and the planet - p=clear; + p=frame_mapRGBA(ShieldFrame,0,0,0,255); } else { // The halo itself DWORD red=red_nt; @@ -341,6 +341,10 @@ void CreateShieldMask() DWORD r; r=rad2-(SHIELD_RADIUS-1)*(SHIELD_RADIUS-1); red=red_nt-red_nt*r/aa_delta; + } else if (rad2 < (RADIUS+3)*(RADIUS+3)) { + DWORD r; + r = rad2 - (RADIUS+2)*(RADIUS+2); + red = red_nt*r/aa_delta2; } p=frame_mapRGBA (ShieldFrame,red,0,0,255);