Fixed temperature due to air friction not rising when more than one planets were present in the system.
This commit is contained in:
parent
62894e37a5
commit
40f5eb68b7
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user