From e6be58a509fec5a30a8b4e11367d8998aeabfbbf Mon Sep 17 00:00:00 2001 From: meep-eep Date: Sat, 13 Aug 2005 15:26:47 +0000 Subject: [PATCH] Added comment git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1854 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/calc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sc2/src/sc2code/planets/calc.c b/sc2/src/sc2code/planets/calc.c index 4db2648ab..acc5d312d 100644 --- a/sc2/src/sc2code/planets/calc.c +++ b/sc2/src/sc2code/planets/calc.c @@ -156,6 +156,14 @@ GeneratePlanetComposition (PLANET_INFOPTR PlanetInfoPtr, SIZE } } +// This function is called both when the solar system is generated, +// and when planetary orbit is entered. +// In the former case, the if() block will not be executed, +// which means that the temperature calculated in that case will be +// slightly lower. The result is that the orbits may not always +// have the colour you'd expect based on the true temperature. +// (eg. Beta Corvi I). I don't know what the idea behind this is, +// but the if statement must be there for a reason. -- SvdB static SIZE CalcTemp (SYSTEM_INFOPTR SysInfoPtr, SIZE radius) {