Changes shape of icon on basic compass when station is target (#356)

Makes it clearer what is being targeted. Code contributed by forum member Milo.
master
phkb 2020-07-24 17:15:55 +10:00 committed by GitHub
parent 2d1bcb200f
commit 2b669d06e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1635,7 +1635,10 @@ static void prefetchData(NSDictionary *info, struct CachedInfo *data)
break;
case COMPASS_MODE_BASIC:
[self drawCompassPlanetBlipAt:relativePosition Size:siz Alpha:alpha];
if ([reference isStation]) // validateCompassTarget in PlayerEntity.m changes COMPASS_BASIC_MODE target to the main station when inside the planetary aegis or in docking range of the main station
[self drawCompassStationBlipAt:relativePosition Size:siz Alpha:alpha];
else
[self drawCompassPlanetBlipAt:relativePosition Size:siz Alpha:alpha];
break;
case COMPASS_MODE_PLANET: