mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +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;
|
double bestDistance = 1.0;
|
||||||
for (const CLivery &livery : *this)
|
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 == 0.0) { return livery; } // exact match
|
||||||
if (d < bestDistance)
|
if (d < bestDistance)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user