Fixed bug #18097 (Fuel indicator not drawn correctly in interstellar space).

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4551 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2011-05-12 21:56:16 +00:00
parent 774c4b922b
commit 3e143ee3d2

View File

@ -3065,7 +3065,7 @@ static bool minShieldLevelPercentageInitialised = false;
- (GLfloat) dialHyperRange
{
if (equal_seeds(target_system_seed, system_seed)) return 0.0f;
if (equal_seeds(target_system_seed, system_seed) && ![UNIVERSE inInterstellarSpace]) return 0.0f;
return [self fuelRequiredForJump] / (GLfloat)PLAYER_MAX_FUEL;
}