diff --git a/sc2/content/ipanims/ip_sun.0.png b/sc2/content/ipanims/ip_sun.0.png index 0ca61c422..b4c3bacc8 100644 Binary files a/sc2/content/ipanims/ip_sun.0.png and b/sc2/content/ipanims/ip_sun.0.png differ diff --git a/sc2/content/ipanims/ip_sun.1.png b/sc2/content/ipanims/ip_sun.1.png index 5d7d93704..c611d6c78 100644 Binary files a/sc2/content/ipanims/ip_sun.1.png and b/sc2/content/ipanims/ip_sun.1.png differ diff --git a/sc2/content/ipanims/ip_sun.2.png b/sc2/content/ipanims/ip_sun.2.png index e295b22dc..09822fd18 100644 Binary files a/sc2/content/ipanims/ip_sun.2.png and b/sc2/content/ipanims/ip_sun.2.png differ diff --git a/sc2/content/ipanims/ip_sun.3.png b/sc2/content/ipanims/ip_sun.3.png index 772206f75..4338807c0 100644 Binary files a/sc2/content/ipanims/ip_sun.3.png and b/sc2/content/ipanims/ip_sun.3.png differ diff --git a/sc2/content/ipanims/ip_sun.4.png b/sc2/content/ipanims/ip_sun.4.png index 9b7458db2..20fba9516 100644 Binary files a/sc2/content/ipanims/ip_sun.4.png and b/sc2/content/ipanims/ip_sun.4.png differ diff --git a/sc2/content/ipanims/ip_sun.ani b/sc2/content/ipanims/ip_sun.ani index 039930853..273c8fb62 100755 --- a/sc2/content/ipanims/ip_sun.ani +++ b/sc2/content/ipanims/ip_sun.ani @@ -1,5 +1,5 @@ -ip_sun.0.png 0 56 2 2 -ip_sun.1.png 0 56 4 3 -ip_sun.2.png 0 56 8 7 -ip_sun.3.png 0 56 16 15 -ip_sun.4.png 0 56 26 24 +ip_sun.0.png 0 111 2 2 +ip_sun.1.png 0 111 4 3 +ip_sun.2.png 0 111 8 7 +ip_sun.3.png 0 111 16 15 +ip_sun.4.png 0 111 26 24 diff --git a/sc2/content/ipanims/orbplan.ct b/sc2/content/ipanims/orbplan.ct index 3272bed3b..32e17a26f 100755 Binary files a/sc2/content/ipanims/orbplan.ct and b/sc2/content/ipanims/orbplan.ct differ diff --git a/sc2/src/sc2code/planets/solarsys.c b/sc2/src/sc2code/planets/solarsys.c index 9419efc26..64b9bb220 100644 --- a/sc2/src/sc2code/planets/solarsys.c +++ b/sc2/src/sc2code/planets/solarsys.c @@ -142,10 +142,7 @@ LoadIPData (void) OrbitalFrame = CaptureDrawable ( LoadGraphic (ORBPLAN_MASK_PMAP_ANIM) ); - SunFrame = SetAbsFrameIndex ( - CaptureDrawable (LoadGraphic (SUN_MASK_PMAP_ANIM)), - STAR_TYPE (CurStarDescPtr->Type) - ); + SunFrame = CaptureDrawable (LoadGraphic (SUN_MASK_PMAP_ANIM)); SpaceMusic = LoadMusicInstance (IP_MUSIC); } @@ -188,6 +185,13 @@ LoadSolarSys (void) CurStarDescPtr->star_pt.y) ); + /* 2002-12-20 = fOSSiL = Star size fix + * set the frame index for the star size + */ + SunFrame = SetAbsFrameIndex (SunFrame, + STAR_TYPE (CurStarDescPtr->Type) + ); + pCurDesc = &pSolarSysState->SunDesc[0]; pCurDesc->pPrevDesc = 0; pCurDesc->rand_seed = Random (); @@ -1700,10 +1704,21 @@ DrawSystem (SIZE radius, BOOLEAN IsInnerSystem) { for (;;) { + COUNT color_index; + pCurDesc = &pSolarSysState->PlanetDesc[index]; + /* 2002-12-20 by fOSSiL = Star color fix + * draw the star using OrbitalCMap + */ + if (pCurDesc == &pSolarSysState->SunDesc[0]) + color_index = STAR_COLOR (CurStarDescPtr->Type); + else + color_index = PLANCOLOR (PlanData[ + pCurDesc->data_index & ~PLANET_SHIELDED + ].Type); + SetColorMap (GetColorMapAddress ( - SetAbsColorMapIndex (OrbitalCMap, - PLANCOLOR (PlanData[pCurDesc->data_index & ~PLANET_SHIELDED].Type )) + SetAbsColorMapIndex (OrbitalCMap, color_index) )); DrawStamp (&pCurDesc->image);