Fix potential overheating bug when leaving planet for sun
This commit is contained in:
parent
83ac586803
commit
84dd448b65
@ -685,6 +685,18 @@ static const BaseFace kTexturedFaces[][3] =
|
|||||||
blue:0.9 * aleph
|
blue:0.9 * aleph
|
||||||
alpha:aleph];
|
alpha:aleph];
|
||||||
}
|
}
|
||||||
|
else if (alt > 0 && alt <= atmo * 1.5)
|
||||||
|
{
|
||||||
|
/* Without this, if you leave the atmosphere at very low
|
||||||
|
* frame rates, you might still have skyalpha > 0 when you
|
||||||
|
* go sun-skimming. Since skyalpha > 0 simulates atmospheric
|
||||||
|
* friction and continually pumps heat into the ship, this
|
||||||
|
* is rapidly fatal - CIM */
|
||||||
|
[UNIVERSE setSkyColorRed:0.0f
|
||||||
|
green:0.0f
|
||||||
|
blue:0.0f
|
||||||
|
alpha:0.0f];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case STELLAR_TYPE_MOON:
|
case STELLAR_TYPE_MOON:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user