Fix for custom_chart_mission defaulting to correct background

This commit is contained in:
phkb 2018-01-25 14:20:08 +11:00
parent c608fdb856
commit c3406ef600
2 changed files with 7 additions and 2 deletions

View File

@ -33,7 +33,8 @@
long_range_chart8 = "long-range-chart8.png"; // if not defined, same as long_range_chart
short_range_chart_mission = "short-range-chart-mission.png"; // if not defined, same as short_range_chart
long_range_chart_mission = "long-range-chart-mission.png"; // if not defined, same as long_range_chart
custom_chart_mission = "custom-chart-mission.png"; // if not defined, same as short_range_chart_mission and then short_range_chart
long_range_chart_mission = "long-range-chart-mission.png"; // if not defined, same as long_range_chart
long_range_chart1_mission = "long-range-chart-mission.png"; // if not defined, same as long_range_chart_mission and then long_range_chart1
long_range_chart2_mission = "long-range-chart-mission.png"; // if not defined, same as long_range_chart_mission and then long_range_chart2
long_range_chart3_mission = "long-range-chart-mission.png"; // if not defined, same as long_range_chart_mission and then long_range_chart3

View File

@ -1045,7 +1045,11 @@ static OOTextureSprite *NewTextureSpriteWithDescriptor(NSDictionary *descriptor)
bgDescriptor = [UNIVERSE screenTextureDescriptorForKey:@"custom_chart_mission"];
if (bgDescriptor == nil)
{
bgDescriptor = [UNIVERSE screenTextureDescriptorForKey:@"short_range_chart"];
bgDescriptor = [UNIVERSE screenTextureDescriptorForKey:@"short_range_chart_mission"];
if (bgDescriptor == nil)
{
bgDescriptor = [UNIVERSE screenTextureDescriptorForKey:@"short_range_chart"];
}
}
break;
case GUI_BACKGROUND_SPECIAL_SHORT: