mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 06:27:17 +00:00
nilrider:: nrlSwapTriangleOrder
This commit is contained in:
parent
b39e2295b4
commit
ef84dcce4b
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user