Skip to content

Commit

Permalink
Fixed a logic error introduced by previous edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed Aug 5, 2023
1 parent 8b0088a commit 52e9675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/modules/SolarSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2657,8 +2657,8 @@ void SolarSystem::reconfigureOrbits()
{
// Display only orbit for selected planet and, if requested, its moons.
for (const auto& p : qAsConst(systemPlanets))
p->setFlagOrbits( (p==selected && ( !flagPlanetsOrbitsOnly || p->getPlanetType()==Planet::isPlanet )
|| (flagOrbitsWithMoons && p->getPlanetType()==Planet::isMoon && p->parent==selected ) ));
p->setFlagOrbits( (p==selected && ( !flagPlanetsOrbitsOnly || p->getPlanetType()==Planet::isPlanet ) )
|| (flagOrbitsWithMoons && p->getPlanetType()==Planet::isMoon && p->parent==selected ) );
return;
}
}
Expand Down

0 comments on commit 52e9675

Please sign in to comment.