Skip to content

Commit 9a1b4a2

Browse files
committed
Merge branch 'analyzer-issues' again
These are da2f747 and 2bd99d0 from PR #270
2 parents b1366f0 + 2855cc9 commit 9a1b4a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Core/GuiDisplayGen.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,6 @@ - (void) drawStarChart:(GLfloat)x :(GLfloat)y :(GLfloat)z :(GLfloat) alpha :(BOO
17821782
(textRow-1) * MAIN_GUI_ROW_HEIGHT * pixelRatio);
17831783

17841784
OOSystemID target = [PLAYER targetSystemID];
1785-
NSString *targetName = [UNIVERSE getSystemName:target];
17861785
double dx, dy;
17871786

17881787
// get a list of systems marked as contract destinations
@@ -1893,10 +1892,9 @@ - (void) drawStarChart:(GLfloat)x :(GLfloat)y :(GLfloat)z :(GLfloat) alpha :(BOO
18931892
{
18941893
[self drawAdvancedNavArrayAtX:x+hoffset y:y+voffset z:z alpha:alpha usingRoute:nil optimizedBy:OPTIMIZED_BY_NONE zoom: zoom];
18951894
}
1896-
NSPoint targetCoordinates = (NSPoint){0,0};
18971895
if (!routeExists)
18981896
{
1899-
targetCoordinates = [systemManager getCoordinatesForSystem:target inGalaxy:galaxy_id];
1897+
NSPoint targetCoordinates = [systemManager getCoordinatesForSystem:target inGalaxy:galaxy_id];
19001898

19011899
distance = distanceBetweenPlanetPositions(targetCoordinates.x,targetCoordinates.y,galaxy_coordinates.x,galaxy_coordinates.y);
19021900
if (distance == 0.0)
@@ -2234,7 +2232,7 @@ - (void) drawStarChart:(GLfloat)x :(GLfloat)y :(GLfloat)z :(GLfloat) alpha :(BOO
22342232
tab_stops[2] = 288;
22352233
[self overrideTabs:tab_stops from:kGuiChartTraveltimeTabs length:3];
22362234
[self setTabStops:tab_stops];
2237-
targetName = [[UNIVERSE getSystemName:target] retain];
2235+
NSString *targetName = [[UNIVERSE getSystemName:target] retain];
22382236

22392237
// distance-f & est-travel-time-f are identical between short & long range charts in standard Oolite, however can be alterered separately via OXPs
22402238
NSString *travelDistLine = @"";

0 commit comments

Comments
 (0)