mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Ref T118, fixed wrong color search (restrict to color liveries)
This commit is contained in:
@@ -91,7 +91,8 @@ namespace BlackMisc
|
||||
double bestDistance = 1.0;
|
||||
for (const CLivery &livery : *this)
|
||||
{
|
||||
double d = livery.getColorDistance(fuselage, tail);
|
||||
if (!livery.isColorLivery()) { continue; }
|
||||
const double d = livery.getColorDistance(fuselage, tail);
|
||||
if (d == 0.0) { return livery; } // exact match
|
||||
if (d < bestDistance)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user