unfinished work on random map gen
This commit is contained in:
@ -64,3 +64,17 @@ std::vector<position> remove_from_list(const std::vector<position>
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<position> remove_from_list(const std::vector<position>
|
||||
&sorted_positions,
|
||||
position &excluded) {
|
||||
|
||||
std::vector<position> result{sorted_positions.size() - 1};
|
||||
|
||||
for (auto src : sorted_positions) {
|
||||
if (src != excluded)
|
||||
result.push_back(src);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user