Added some much-needed comments.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@251 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2002-11-28 17:36:24 +00:00
parent ff5ab2a1eb
commit 6ef45b2dbf
+6
View File
@@ -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;