Fix galaxies selection (Closes: #13)

It was introduced during conversion to C++11
pull/110/head
Hleb Valoshka 2018-10-15 18:26:14 +03:00 committed by Hleb Valoshka
parent df3c23a079
commit a3a91ed8a0
1 changed files with 6 additions and 4 deletions

View File

@ -881,12 +881,14 @@ Selection Universe::pick(const UniversalCoord& origin,
}
}
if (sel.empty() && (renderFlags & Renderer::ShowStars))
{
sel = pickStar(origin, direction, when, faintestMag, tolerance);
}
if (sel.empty())
{
if (renderFlags & Renderer::ShowStars)
sel = pickStar(origin, direction, when, faintestMag, tolerance);
else
sel = pickDeepSkyObject(origin, direction, renderFlags, faintestMag, tolerance);
sel = pickDeepSkyObject(origin, direction, renderFlags, faintestMag, tolerance);
}
return sel;