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

added missing curvepoint_pretty

This commit is contained in:
Zeno Rogue 2025-02-23 22:57:37 +01:00
parent d391d671b0
commit c7620068ed

View File

@ -2790,6 +2790,16 @@ EX void curvepoint(const hyperpoint& H1) {
curvedata.push_back(glhr::pointtogl(H1));
}
EX void curvepoint_pretty(const hyperpoint& h1, const hyperpoint& h2, int lev) {
if(lev >= 0 && pmodel != mdPixel) {
hyperpoint h3 = midz(h1, h2);
curvepoint_pretty(h1, h3, lev-1);
curvepoint_pretty(h3, h2, lev-1);
}
else curvepoint(h2);
}
EX void curvepoint_first() {
curvedata.push_back(curvedata[curvestart]);
}