Fixed bug in search for connected systems when galacting jumping..
This commit is contained in:
parent
60a89f9f25
commit
666b02eec3
@ -7917,7 +7917,7 @@ static void VerifyDesc(NSString *key, id desc)
|
|||||||
for (i = 0; i < 256; i++) // flood fill out from system zero
|
for (i = 0; i < 256; i++) // flood fill out from system zero
|
||||||
{
|
{
|
||||||
NSPoint ipos = [systemManager getCoordinatesForSystem:i inGalaxy:g];
|
NSPoint ipos = [systemManager getCoordinatesForSystem:i inGalaxy:g];
|
||||||
for (j = i+1; j < 256; j++)
|
for (j = 0; j < 256; j++)
|
||||||
{
|
{
|
||||||
NSPoint jpos = [systemManager getCoordinatesForSystem:j inGalaxy:g];
|
NSPoint jpos = [systemManager getCoordinatesForSystem:j inGalaxy:g];
|
||||||
double dist = distanceBetweenPlanetPositions(ipos.x,ipos.y,jpos.x,jpos.y);
|
double dist = distanceBetweenPlanetPositions(ipos.x,ipos.y,jpos.x,jpos.y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user