Fix mission screen charts to show routes properly

This commit is contained in:
cim 2015-08-11 21:14:18 +01:00
parent 000df2d61b
commit 5983fc0e9d

View File

@ -1794,6 +1794,16 @@ static OOTextureSprite *NewTextureSpriteWithDescriptor(NSDictionary *descriptor)
OOSystemID savedDestNumber = 0;
static NSDictionary *routeInfo = nil;
/* May override current mode for mission screens */
if (backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG_ANA_SHORTEST)
{
advancedNavArrayMode = OPTIMIZED_BY_JUMPS;
}
else if (backgroundSpecial == GUI_BACKGROUND_SPECIAL_LONG_ANA_QUICKEST)
{
advancedNavArrayMode = OPTIMIZED_BY_TIME;
}
if (advancedNavArrayMode != OPTIMIZED_BY_NONE && [player hasEquipmentItemProviding:@"EQ_ADVANCED_NAVIGATIONAL_ARRAY"])
{
OOSystemID planetNumber = [PLAYER systemID];