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:
Zed A. Shaw 2025-02-04 22:52:04 -05:00
parent d6c09e111d
commit d0badedbd9
5 changed files with 25 additions and 74 deletions

View file

@ -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;
}