Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/celengine/parseobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,11 +827,7 @@ CreateOrbit(const Selection& centralObject,
Body* centralBody = centralObject.body();
if (centralBody != nullptr)
{
#if 0 // TODO: This should be enabled after #542 is fixed
Vector3d pos = centralBody->geodeticToCartesian(*longlat);
#else
Vector3d pos = centralBody->planetocentricToCartesian(longlat->x(), longlat->y(), longlat->z());
#endif
return new celestia::ephem::SynchronousOrbit(*centralBody, pos);
}
// TODO: Allow fixing objects to the surface of stars.
Expand Down
2 changes: 1 addition & 1 deletion src/celengine/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4888,7 +4888,7 @@ Renderer::removeInvisibleItems(const math::Frustum &frustum)
nearZ = -nearZ * nearZcoeff;

if (nearZ > -MinNearPlaneDistance)
ri.nearZ = -max(MinNearPlaneDistance, radius / 2000.0f);
ri.nearZ = -std::min(MinNearPlaneDistance, radius / 2000.0f);
else
ri.nearZ = nearZ;

Expand Down