Fixed temperature due to air friction not rising when more than one planets were present in the system.

This commit is contained in:
AnotherCommander 2018-03-28 18:42:56 +02:00
parent 62894e37a5
commit 40f5eb68b7

View File

@ -566,7 +566,10 @@ static OOColor *ColorWithHSBColor(Vector c)
// if shader atmo is in use, force texture atmo radius to just collision_radius for cosmetic purposes
[_atmosphereDrawable setRadius:collision_radius];
}
[UNIVERSE setAirResistanceFactor:0.0f]; // out of atmosphere - no air friction
if ([PLAYER findNearestPlanet] == self) // ensure no problems in case of more than one planets
{
[UNIVERSE setAirResistanceFactor:0.0f]; // out of atmosphere - no air friction
}
}
double time = [UNIVERSE getTime];