1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

sort the lands in geom-exp by quality

This commit is contained in:
Zeno Rogue 2018-04-11 23:37:41 +02:00
parent 854c1dd3d2
commit 1dee3098cf

View File

@ -377,6 +377,7 @@ void showEuclideanMenu() {
dialog::addBreak(50);
generateLandList(isLandValid);
stable_sort(landlist.begin(), landlist.end(), [] (eLand l1, eLand l2) { return isLandValid(l1) > isLandValid(l2); });
for(int i=0; i<euperpage; i++) {
if(euperpage * eupage + i >= size(landlist)) { dialog::addBreak(100); break; }