From 6ef45b2dbf4494e46b374bed336ab1ee4609d633 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Thu, 28 Nov 2002 17:36:24 +0000 Subject: [PATCH] Added some much-needed comments. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@251 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/solarsys.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sc2/src/sc2code/planets/solarsys.c b/sc2/src/sc2code/planets/solarsys.c index 11d02d425..2b8c82fa8 100644 --- a/sc2/src/sc2code/planets/solarsys.c +++ b/sc2/src/sc2code/planets/solarsys.c @@ -228,6 +228,12 @@ LoadSolarSys (void) { SIZE sort_array[MAX_PLANETS + 1]; + // When this part is done, sort_array will contain the indices to + // all planets, sorted on their y position. + // The sun itself, which has its data located at + // pSolarSysState->PlanetDesc[-1], is included in this array. + // Very ugly stuff, but it's correct. + for (i = 0; i <= pSolarSysState->SunDesc[0].NumPlanets; ++i) sort_array[i] = i - 1;