Skip to content

Commit

Permalink
Fix boundaries rendering for Serpens constellation (SER1/SER2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtribick committed Jun 15, 2024
1 parent 6a1b6b7 commit 23f92ef
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/celengine/boundaries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,10 @@ ReadBoundaries(std::istream& in)
break;

trimLeadingWhitespace(line);
// field should be exactly 3 characters - future proof in case we
// remove the unnecessary additional field from the file
if (auto pos = line.find_first_of(Whitespace);
(pos == std::string_view::npos && line.size() != 3) || pos != 3)
{
auto pos = line.find_first_of(Whitespace);
auto constellation = line.substr(0, pos);
if (constellation.empty() || constellation == "XXX"sv)
break;
}

auto constellation = line.substr(0, 3);
if (constellation != std::string_view(lastConstellation.data(), lastConstellation.size()))
{
if (currentChain.size() > 1)
Expand Down

0 comments on commit 23f92ef

Please sign in to comment.