More cleanup of the raycaster, finally removed the window as a dependency but I went against making it an sf::Drawable since that had a lot of code quality problems.
This commit is contained in:
parent
d6c09e111d
commit
d0badedbd9
5 changed files with 25 additions and 74 deletions
|
@ -76,7 +76,7 @@ SortedEntities SpatialMap::distance_sorted(Point from) {
|
|||
sprite_distance.push_back({inside, rec.second});
|
||||
}
|
||||
|
||||
std::sort(sprite_distance.begin(), sprite_distance.end());
|
||||
std::sort(sprite_distance.begin(), sprite_distance.end(), std::greater<>());
|
||||
|
||||
return sprite_distance;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue