Minor changes to help players see each other
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user