Minor changes to help players see each other

This commit is contained in:
2024-02-28 15:35:47 -05:00
parent 0c126e62d6
commit 4495ae7133
8 changed files with 25 additions and 15 deletions

View File

@@ -780,11 +780,9 @@ PlaneMap::~PlaneMap() {}
void PlaneMap::scan(const PlaneScan &sc, util::IdVector *into) const {
into->clear();
int startpos = 0;
if (sc.near_ != 0) {
if (sc.include_near_) {
into->push_back(sc.near_);
startpos = 1;
}
}
@@ -799,7 +797,7 @@ void PlaneMap::scan(const PlaneScan &sc, util::IdVector *into) const {
}
if (sc.sorted_) {
std::sort(into->begin() + startpos, into->end());
std::sort(into->begin(), into->end());
}
}