Fixed 'interstellar_undocking = yes;' not working for zero-distance systems.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4566 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2011-06-23 17:17:51 +00:00
parent 47d4b2c6f1
commit 0bfaa28b3f

View File

@ -542,7 +542,7 @@ static OOComparisonResult comparePrice(id dict1, id dict2, void * context);
NSPoint coords = [player galaxy_coordinates];
// check the nearest system
Random_Seed s_seed = [self findSystemAtCoords:coords withGalaxySeed:[player galaxy_seed]];
BOOL interstel =[dockedStation interstellarUndockingAllowed] && (s_seed.d != coords.x || s_seed.b != coords.y);
BOOL interstel = [dockedStation interstellarUndockingAllowed]; // && (s_seed.d != coords.x || s_seed.b != coords.y); - Nikos 20110623: Do we really need the commented out check?
// remove everything except the player and the docked station
if (dockedStation && !interstel)