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

nilrider:: nrlSwapTriangleOrder

This commit is contained in:
Zeno Rogue 2024-08-18 01:28:34 +02:00
parent b39e2295b4
commit ef84dcce4b
2 changed files with 5 additions and 0 deletions

View File

@ -379,6 +379,9 @@ void level::init() {
d.colors[6] = d.colors[0];
triangles.emplace_back(d);
}
if(flags & nrlSwapTriangleOrder)
sort(triangles.begin(), triangles.end(), [] (triangledata& d1, triangledata& d2) { return tie(d1.x, d1.y) < tie(d2.x, d2.y); });
}
cgi.finishshape();
}

View File

@ -10,6 +10,8 @@ goalchecker basic_check(ld time_limit, ld rev_limit) {
};
}
flagtype LEVEL_SWAP_TRIANGLE_ORDER = 1;
goalchecker get_any(ld time_limit, ld rev_limit) {
return [=] (checkerparam c) {
if(c.t->timer > time_limit || c.rev > rev_limit) return grFailed;